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