# # Only global # select @@global.performance_schema_max_index_stat; --error ER_INCORRECT_GLOBAL_LOCAL_VAR select @@session.performance_schema_max_index_stat; show global variables like 'performance_schema_max_index_stat'; show session variables like 'performance_schema_max_index_stat'; --disable_warnings select * from performance_schema.global_variables where variable_name='performance_schema_max_index_stat'; select * from performance_schema.session_variables where variable_name='performance_schema_max_index_stat'; --enable_warnings # # Read-only # --error ER_INCORRECT_GLOBAL_LOCAL_VAR set global performance_schema_max_index_stat=1; --error ER_INCORRECT_GLOBAL_LOCAL_VAR set session performance_schema_max_index_stat=1;