select @@global.lock_order_debug_missing_unlock; @@global.lock_order_debug_missing_unlock 0 select @@session.lock_order_debug_missing_unlock; ERROR HY000: Variable 'lock_order_debug_missing_unlock' is a GLOBAL variable show global variables like 'lock_order_debug_missing_unlock'; Variable_name Value lock_order_debug_missing_unlock OFF show session variables like 'lock_order_debug_missing_unlock'; Variable_name Value lock_order_debug_missing_unlock OFF select * from performance_schema.global_variables where variable_name='lock_order_debug_missing_unlock'; VARIABLE_NAME VARIABLE_VALUE lock_order_debug_missing_unlock OFF select * from performance_schema.session_variables where variable_name='lock_order_debug_missing_unlock'; VARIABLE_NAME VARIABLE_VALUE lock_order_debug_missing_unlock OFF set global lock_order_debug_missing_unlock=1; ERROR HY000: Variable 'lock_order_debug_missing_unlock' is a read only variable set session lock_order_debug_missing_unlock=1; ERROR HY000: Variable 'lock_order_debug_missing_unlock' is a read only variable