| 1 |
# |
| 2 |
# only global |
| 3 |
# |
| 4 |
--source include/have_log_bin.inc |
| 5 |
select @@global.log_bin; |
| 6 |
--error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 7 |
select @@session.log_bin; |
| 8 |
show global variables like 'log_bin'; |
| 9 |
show session variables like 'log_bin'; |
| 10 |
--disable_warnings |
| 11 |
select * from performance_schema.global_variables where variable_name='log_bin'; |
| 12 |
select * from performance_schema.session_variables where variable_name='log_bin'; |
| 13 |
--enable_warnings |
| 14 |
|
| 15 |
# |
| 16 |
# show that it's read-only |
| 17 |
# |
| 18 |
--error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 19 |
set global log_bin=1; |
| 20 |
--error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 21 |
set session log_bin=1; |
| 22 |
|