select @@global.VARIABLE_NAMEVARIABLE_VALUE
@@lobal.eport_port
DEFAULT_MASTER_PORT
select @@ession.eport_port;
ERROR HY000: Variable 'report_port' is a GLOBAL variable
show global variables like 'report_port';
Variable_name Value
report_port DEFAULT_MASTER_PORT
show session variables like 'report_port';
Variable_name Value
report_port DEFAULT_MASTER_PORT
select * from information_schema.global_variables where variable_name='report_port';
VARIABLE_NAME VARIABLE_VALUE
REPORT_PORT DEFAULT_MASTER_PORT
select * from information_schema.session_variables where variable_name='report_port';
VARIABLE_NAME VARIABLE_VALUE
REPORT_PORT DEFAULT_MASTER_PORT
set global report_port=1;
HY000:'' readonlyvariable
set session report_port=1;
ERRORHY000:Variable'eport_port' isaonly variable
99, 71, 0.5)' />