1 # Tests for PERFORMANCE_SCHEMA
3 let $MYSQLD_DATADIR= `select @@datadir`;
4 let $MYSQLD_TMPDIR= `select @@tmpdir`;
7 update performance_schema.setup_instruments
set enabled=
'NO';
8 update performance_schema.setup_consumers
set enabled=
'YES';
11 connect (con1, localhost, root, , );
13 let $con1_THREAD_ID=`select thread_id from performance_schema.threads
16 connect (con2, localhost, root, , );
18 let $con2_THREAD_ID=`select thread_id from performance_schema.threads
21 connect (con3, localhost, root, , );
23 let $con3_THREAD_ID=`select thread_id from performance_schema.threads
29 prepare stmt_dump_events from
31 left(source, locate(\":\", source)) as short_source,
32 operation, number_of_bytes
33 from performance_schema.events_waits_history_long
34 where thread_id=? order by event_id;";
36 prepare stmt_dump_thread from
37 "select name from performance_schema.threads where thread_id=? ;";