# # only global # --replace_result $MASTER_MYPORT MASTER_MYPORT select @@global.port; --error ER_INCORRECT_GLOBAL_LOCAL_VAR select @@session.port; --replace_result $MASTER_MYPORT MASTER_MYPORT show global variables like 'port'; --replace_result $MASTER_MYPORT MASTER_MYPORT show session variables like 'port'; --replace_result $MASTER_MYPORT MASTER_MYPORT select * from information_schema.global_variables where variable_name='port'; --replace_result $MASTER_MYPORT MASTER_MYPORT select * from information_schema.session_variables where variable_name='port'; # # show that it's read-only # --error ER_INCORRECT_GLOBAL_LOCAL_VAR set global port=1; --error ER_INCORRECT_GLOBAL_LOCAL_VAR set session port=1;