mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
e0e0f9e3d4
Part V: performance schema implementation
13 lines
585 B
Text
13 lines
585 B
Text
SELECT EVENT_ID FROM performance_schema.EVENTS_WAITS_CURRENT
|
|
WHERE THREAD_ID IN
|
|
(SELECT THREAD_ID FROM performance_schema.PROCESSLIST)
|
|
AND EVENT_NAME IN
|
|
(SELECT NAME FROM performance_schema.SETUP_INSTRUMENTS
|
|
WHERE NAME LIKE "wait/synch/%")
|
|
LIMIT 1;
|
|
create table test.t1(a int) engine=performance_schema;
|
|
ERROR HY000: Invalid performance_schema usage.
|
|
create table test.t1 like performance_schema.EVENTS_WAITS_CURRENT;
|
|
ERROR HY000: Invalid performance_schema usage.
|
|
create table performance_schema.t1(a int);
|
|
ERROR 42000: CREATE command denied to user 'root'@'localhost' for table 't1'
|