2012-08-14 16:23:34 +02:00
|
|
|
update performance_schema.setup_timers
|
|
|
|
set timer_name='CYCLE' where name="wait";
|
|
|
|
update performance_schema.setup_timers
|
|
|
|
set timer_name='NANOSECOND' where name="stage";
|
|
|
|
update performance_schema.setup_timers
|
|
|
|
set timer_name='NANOSECOND' where name="statement";
|
|
|
|
update performance_schema.setup_timers
|
|
|
|
set timer_name='MICROSECOND' where name="idle";
|
2010-11-03 16:42:33 +01:00
|
|
|
select * from performance_schema.setup_timers;
|
2010-01-12 02:47:27 +01:00
|
|
|
NAME TIMER_NAME
|
2012-08-14 16:23:34 +02:00
|
|
|
idle MICROSECOND
|
2010-01-12 02:47:27 +01:00
|
|
|
wait CYCLE
|
2012-08-14 16:23:34 +02:00
|
|
|
stage NANOSECOND
|
|
|
|
statement NANOSECOND
|
2010-11-03 16:42:33 +01:00
|
|
|
select * from performance_schema.setup_timers
|
2010-01-12 02:47:27 +01:00
|
|
|
where name='Wait';
|
|
|
|
NAME TIMER_NAME
|
|
|
|
wait CYCLE
|
2010-11-03 16:42:33 +01:00
|
|
|
select * from performance_schema.setup_timers
|
2010-01-12 02:47:27 +01:00
|
|
|
where timer_name='CYCLE';
|
|
|
|
NAME TIMER_NAME
|
|
|
|
wait CYCLE
|
2010-11-03 16:42:33 +01:00
|
|
|
insert into performance_schema.setup_timers
|
2010-01-12 02:47:27 +01:00
|
|
|
set name='FOO', timer_name='CYCLE';
|
2010-11-03 16:42:33 +01:00
|
|
|
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'setup_timers'
|
|
|
|
update performance_schema.setup_timers
|
2010-01-12 02:47:27 +01:00
|
|
|
set name='FOO';
|
|
|
|
ERROR HY000: Invalid performance_schema usage.
|
2010-11-03 16:42:33 +01:00
|
|
|
update performance_schema.setup_timers
|
2010-01-12 02:47:27 +01:00
|
|
|
set timer_name='MILLISECOND';
|
2010-11-03 16:42:33 +01:00
|
|
|
select * from performance_schema.setup_timers;
|
2010-01-12 02:47:27 +01:00
|
|
|
NAME TIMER_NAME
|
2012-08-14 16:23:34 +02:00
|
|
|
idle MILLISECOND
|
2010-01-12 02:47:27 +01:00
|
|
|
wait MILLISECOND
|
2012-08-14 16:23:34 +02:00
|
|
|
stage MILLISECOND
|
|
|
|
statement MILLISECOND
|
2010-11-03 16:42:33 +01:00
|
|
|
update performance_schema.setup_timers
|
2010-01-12 02:47:27 +01:00
|
|
|
set timer_name='CYCLE';
|
2010-11-03 16:42:33 +01:00
|
|
|
delete from performance_schema.setup_timers;
|
|
|
|
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_timers'
|
|
|
|
delete from performance_schema.setup_timers
|
2010-01-12 02:47:27 +01:00
|
|
|
where name='Wait';
|
2010-11-03 16:42:33 +01:00
|
|
|
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_timers'
|
|
|
|
LOCK TABLES performance_schema.setup_timers READ;
|
2010-01-12 02:47:27 +01:00
|
|
|
UNLOCK TABLES;
|
2010-11-03 16:42:33 +01:00
|
|
|
LOCK TABLES performance_schema.setup_timers WRITE;
|
2010-01-12 02:47:27 +01:00
|
|
|
UNLOCK TABLES;
|
2012-08-14 16:23:34 +02:00
|
|
|
update performance_schema.setup_timers
|
|
|
|
set timer_name='CYCLE' where name="wait";
|
|
|
|
update performance_schema.setup_timers
|
|
|
|
set timer_name='NANOSECOND' where name="stage";
|
|
|
|
update performance_schema.setup_timers
|
|
|
|
set timer_name='NANOSECOND' where name="statement";
|
|
|
|
update performance_schema.setup_timers
|
|
|
|
set timer_name='MICROSECOND' where name="idle";
|
|
|
|
select * from performance_schema.setup_timers;
|
|
|
|
NAME TIMER_NAME
|
|
|
|
idle MICROSECOND
|
|
|
|
wait CYCLE
|
|
|
|
stage NANOSECOND
|
|
|
|
statement NANOSECOND
|