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;