2010-11-03 16:42:33 +01:00
|
|
|
select * from performance_schema.threads
|
2010-01-11 18:47:27 -07:00
|
|
|
where name like 'Thread/%' limit 1;
|
2010-11-03 16:42:33 +01:00
|
|
|
select * from performance_schema.threads
|
2010-01-11 18:47:27 -07:00
|
|
|
where name='FOO';
|
2010-11-03 16:42:33 +01:00
|
|
|
insert into performance_schema.threads
|
2010-10-06 18:03:27 -06:00
|
|
|
set name='FOO', thread_id=1, processlist_id=2;
|
2010-11-03 16:42:33 +01:00
|
|
|
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'threads'
|
|
|
|
update performance_schema.threads
|
2010-01-11 18:47:27 -07:00
|
|
|
set thread_id=12;
|
2012-08-14 17:23:34 +03:00
|
|
|
ERROR HY000: Invalid performance_schema usage.
|
2010-11-03 16:42:33 +01:00
|
|
|
update performance_schema.threads
|
2012-08-14 17:23:34 +03:00
|
|
|
set thread_id=12 where PROCESSLIST_ID=connection_id();
|
|
|
|
ERROR HY000: Invalid performance_schema usage.
|
|
|
|
update performance_schema.threads
|
|
|
|
set instrumented= 'NO' where PROCESSLIST_ID=connection_id();
|
|
|
|
select instrumented from performance_schema.threads
|
|
|
|
where PROCESSLIST_ID=connection_id();
|
|
|
|
instrumented
|
|
|
|
NO
|
|
|
|
update performance_schema.threads
|
|
|
|
set instrumented= 'YES' where PROCESSLIST_ID=connection_id();
|
|
|
|
select instrumented from performance_schema.threads
|
|
|
|
where PROCESSLIST_ID=connection_id();
|
|
|
|
instrumented
|
|
|
|
YES
|
2010-11-03 16:42:33 +01:00
|
|
|
delete from performance_schema.threads
|
2010-01-11 18:47:27 -07:00
|
|
|
where id=1;
|
2010-11-03 16:42:33 +01:00
|
|
|
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'threads'
|
|
|
|
delete from performance_schema.threads;
|
|
|
|
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'threads'
|
|
|
|
LOCK TABLES performance_schema.threads READ;
|
2010-01-11 18:47:27 -07:00
|
|
|
UNLOCK TABLES;
|
2010-11-03 16:42:33 +01:00
|
|
|
LOCK TABLES performance_schema.threads WRITE;
|
2010-01-11 18:47:27 -07:00
|
|
|
UNLOCK TABLES;
|