1select @@global.performance_schema_max_thread_instances; 2@@global.performance_schema_max_thread_instances 3123 4select @@session.performance_schema_max_thread_instances; 5ERROR HY000: Variable 'performance_schema_max_thread_instances' is a GLOBAL variable 6show global variables like 'performance_schema_max_thread_instances'; 7Variable_name Value 8performance_schema_max_thread_instances 123 9show session variables like 'performance_schema_max_thread_instances'; 10Variable_name Value 11performance_schema_max_thread_instances 123 12select * from information_schema.global_variables 13where variable_name='performance_schema_max_thread_instances'; 14VARIABLE_NAME VARIABLE_VALUE 15PERFORMANCE_SCHEMA_MAX_THREAD_INSTANCES 123 16select * from information_schema.session_variables 17where variable_name='performance_schema_max_thread_instances'; 18VARIABLE_NAME VARIABLE_VALUE 19PERFORMANCE_SCHEMA_MAX_THREAD_INSTANCES 123 20set global performance_schema_max_thread_instances=1; 21ERROR HY000: Variable 'performance_schema_max_thread_instances' is a read only variable 22set session performance_schema_max_thread_instances=1; 23ERROR HY000: Variable 'performance_schema_max_thread_instances' is a read only variable 24