--source include/have_lock_order.inc # # Only global # select @@global.lock_order_debug_loop; --error ER_INCORRECT_GLOBAL_LOCAL_VAR select @@session.lock_order_debug_loop; show global variables like 'lock_order_debug_loop'; show session variables like 'lock_order_debug_loop'; select * from performance_schema.global_variables where variable_name='lock_order_debug_loop'; select * from performance_schema.session_variables where variable_name='lock_order_debug_loop'; # # Read-only # --error ER_INCORRECT_GLOBAL_LOCAL_VAR set global lock_order_debug_loop=1; --error ER_INCORRECT_GLOBAL_LOCAL_VAR set session lock_order_debug_loop=1;