| 1 |
select * from performance_schema.events_waits_summary_by_user_by_event_name |
| 2 |
where event_name like 'Wait/Synch/%' limit 1; |
| 3 |
USER EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT |
| 4 |
# # # # # # # |
| 5 |
select * from performance_schema.events_waits_summary_by_user_by_event_name |
| 6 |
where event_name='FOO'; |
| 7 |
USER EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT |
| 8 |
insert into performance_schema.events_waits_summary_by_user_by_event_name |
| 9 |
set event_name='FOO', user='BAR', |
| 10 |
count_star=1, sum_timer_wait=2, min_timer_wait=3, |
| 11 |
avg_timer_wait=4, max_timer_wait=5; |
| 12 |
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' |
| 13 |
update performance_schema.events_waits_summary_by_user_by_event_name |
| 14 |
set count_star=12; |
| 15 |
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' |
| 16 |
update performance_schema.events_waits_summary_by_user_by_event_name |
| 17 |
set count_star=12 where event_name like "FOO"; |
| 18 |
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' |
| 19 |
delete from performance_schema.events_waits_summary_by_user_by_event_name |
| 20 |
where count_star=1; |
| 21 |
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' |
| 22 |
delete from performance_schema.events_waits_summary_by_user_by_event_name; |
| 23 |
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' |
| 24 |
LOCK TABLES performance_schema.events_waits_summary_by_user_by_event_name READ; |
| 25 |
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' |
| 26 |
UNLOCK TABLES; |
| 27 |
LOCK TABLES performance_schema.events_waits_summary_by_user_by_event_name WRITE; |
| 28 |
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' |
| 29 |
UNLOCK TABLES; |