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