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