| 1 |
RESET MASTER; |
| 2 |
SET @start_global_value = @@global.gtid_executed; |
| 3 |
SELECT @start_global_value; |
| 4 |
@start_global_value |
| 5 |
|
| 6 |
select @@global.gtid_executed; |
| 7 |
@@global.gtid_executed |
| 8 |
|
| 9 |
select @@session.gtid_executed; |
| 10 |
ERROR HY000: Variable 'gtid_executed' is a GLOBAL variable |
| 11 |
show global variables like 'gtid_executed'; |
| 12 |
Variable_name Value |
| 13 |
gtid_executed |
| 14 |
show session variables like 'gtid_executed'; |
| 15 |
Variable_name Value |
| 16 |
gtid_executed |
| 17 |
select * from performance_schema.global_variables where variable_name='gtid_executed'; |
| 18 |
VARIABLE_NAME VARIABLE_VALUE |
| 19 |
gtid_executed |
| 20 |
select * from performance_schema.session_variables where variable_name='gtid_executed'; |
| 21 |
VARIABLE_NAME VARIABLE_VALUE |
| 22 |
gtid_executed |
| 23 |
select @@global.gtid_executed; |
| 24 |
@@global.gtid_executed |
| 25 |
|
| 26 |
set @@global.gtid_executed = ''; |
| 27 |
ERROR HY000: Variable 'gtid_executed' is a read only variable |
| 28 |
set @@session.gtid_executed = ''; |
| 29 |
ERROR HY000: Variable 'gtid_executed' is a read only variable |