You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.6 KiB

  1. select * from performance_schema.PERFORMANCE_TIMERS;
  2. TIMER_NAME TIMER_FREQUENCY TIMER_RESOLUTION TIMER_OVERHEAD
  3. CYCLE <frequency> <resolution> <overhead>
  4. NANOSECOND <frequency> <resolution> <overhead>
  5. MICROSECOND <frequency> <resolution> <overhead>
  6. MILLISECOND <frequency> <resolution> <overhead>
  7. TICK <frequency> <resolution> <overhead>
  8. select * from performance_schema.PERFORMANCE_TIMERS
  9. where timer_name='CYCLE';
  10. TIMER_NAME TIMER_FREQUENCY TIMER_RESOLUTION TIMER_OVERHEAD
  11. CYCLE <frequency> <resolution> <overhead>
  12. insert into performance_schema.PERFORMANCE_TIMERS
  13. set timer_name='FOO', timer_frequency=1,
  14. timer_resolution=2, timer_overhead=3;
  15. ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
  16. update performance_schema.PERFORMANCE_TIMERS
  17. set timer_frequency=12 where timer_name='CYCLE';
  18. ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
  19. delete from performance_schema.PERFORMANCE_TIMERS;
  20. ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
  21. delete from performance_schema.PERFORMANCE_TIMERS
  22. where timer_name='CYCLE';
  23. ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
  24. LOCK TABLES performance_schema.PERFORMANCE_TIMERS READ;
  25. ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
  26. UNLOCK TABLES;
  27. LOCK TABLES performance_schema.PERFORMANCE_TIMERS WRITE;
  28. ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
  29. UNLOCK TABLES;