| 1 |
select @@global.skip_replication; |
| 2 |
ERROR HY000: Variable 'skip_replication' is a SESSION variable |
| 3 |
select @@session.skip_replication between 1 and 10000; |
| 4 |
@@session.skip_replication between 1 and 10000 |
| 5 |
0 |
| 6 |
should be empty |
| 7 |
show global variables like 'skip_replication'; |
| 8 |
Variable_name Value |
| 9 |
show session variables like 'skip_replication'; |
| 10 |
Variable_name Value |
| 11 |
skip_replication OFF |
| 12 |
should be empty |
| 13 |
select * from information_schema.global_variables where variable_name='skip_replication'; |
| 14 |
VARIABLE_NAME VARIABLE_VALUE |
| 15 |
select @@session.skip_replication = variable_value from information_schema.session_variables where variable_name='skip_replication'; |
| 16 |
@@session.skip_replication = variable_value |
| 17 |
1 |
| 18 |
Warnings: |
| 19 |
Warning 1292 Truncated incorrect DECIMAL value: 'OFF' |
| 20 |
set session skip_replication=0; |
| 21 |
select @@session.skip_replication; |
| 22 |
@@session.skip_replication |
| 23 |
0 |
| 24 |
set session skip_replication=1; |
| 25 |
select @@session.skip_replication; |
| 26 |
@@session.skip_replication |
| 27 |
1 |
| 28 |
select * from information_schema.global_variables where variable_name='skip_replication'; |
| 29 |
VARIABLE_NAME VARIABLE_VALUE |
| 30 |
select variable_value from information_schema.session_variables where variable_name='skip_replication'; |
| 31 |
variable_value |
| 32 |
ON |
| 33 |
set global skip_replication=1; |
| 34 |
ERROR HY000: Variable 'skip_replication' is a SESSION variable and can't be used with SET GLOBAL |