mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
e0e0f9e3d4
Part V: performance schema implementation
45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
select * from performance_schema.SETUP_CONSUMERS;
|
|
NAME ENABLED
|
|
events_waits_current YES
|
|
events_waits_history YES
|
|
events_waits_history_long YES
|
|
events_waits_summary_by_thread_by_event_name YES
|
|
events_waits_summary_by_event_name YES
|
|
events_waits_summary_by_instance YES
|
|
file_summary_by_event_name YES
|
|
file_summary_by_instance YES
|
|
select * from performance_schema.SETUP_CONSUMERS
|
|
where name='events_waits_current';
|
|
NAME ENABLED
|
|
events_waits_current YES
|
|
select * from performance_schema.SETUP_CONSUMERS
|
|
where enabled='YES';
|
|
NAME ENABLED
|
|
events_waits_current YES
|
|
events_waits_history YES
|
|
events_waits_history_long YES
|
|
events_waits_summary_by_thread_by_event_name YES
|
|
events_waits_summary_by_event_name YES
|
|
events_waits_summary_by_instance YES
|
|
file_summary_by_event_name YES
|
|
file_summary_by_instance YES
|
|
select * from performance_schema.SETUP_CONSUMERS
|
|
where enabled='NO';
|
|
NAME ENABLED
|
|
insert into performance_schema.SETUP_CONSUMERS
|
|
set name='FOO', enabled='YES';
|
|
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'SETUP_CONSUMERS'
|
|
update performance_schema.SETUP_CONSUMERS
|
|
set name='FOO';
|
|
ERROR HY000: Invalid performance_schema usage.
|
|
update performance_schema.SETUP_CONSUMERS
|
|
set enabled='YES';
|
|
delete from performance_schema.SETUP_CONSUMERS;
|
|
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_CONSUMERS'
|
|
delete from performance_schema.SETUP_CONSUMERS
|
|
where name='events_waits_current';
|
|
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_CONSUMERS'
|
|
LOCK TABLES performance_schema.SETUP_CONSUMERS READ;
|
|
UNLOCK TABLES;
|
|
LOCK TABLES performance_schema.SETUP_CONSUMERS WRITE;
|
|
UNLOCK TABLES;
|