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