1select @@global.log_bin; 2@@global.log_bin 30 4select @@session.log_bin; 5ERROR HY000: Variable 'log_bin' is a GLOBAL variable 6show global variables like 'log_bin'; 7Variable_name Value 8log_bin OFF 9show session variables like 'log_bin'; 10Variable_name Value 11log_bin OFF 12select * from information_schema.global_variables where variable_name='log_bin'; 13VARIABLE_NAME VARIABLE_VALUE 14LOG_BIN OFF 15select * from information_schema.session_variables where variable_name='log_bin'; 16VARIABLE_NAME VARIABLE_VALUE 17LOG_BIN OFF 18set global log_bin=1; 19ERROR HY000: Variable 'log_bin' is a read only variable 20set session log_bin=1; 21ERROR HY000: Variable 'log_bin' is a read only variable 22