1 # Tests for the performance schema
4 # See comments in include/table_aggregate_setup.inc
8 revoke all privileges, grant
option from user1@localhost;
9 revoke all privileges, grant
option from user2@localhost;
10 revoke all privileges, grant
option from user3@localhost;
11 revoke all privileges, grant
option from user4@localhost;
12 drop user user1@localhost;
13 drop user user2@localhost;
14 drop user user3@localhost;
15 drop user user4@localhost;
18 drop procedure dump_thread;
19 drop procedure dump_one_thread;
20 drop prepare dump_waits_account;
21 drop prepare dump_waits_user;
22 drop prepare dump_waits_host;
23 drop prepare dump_waits_global;
24 drop prepare dump_waits_history;
25 drop prepare dump_waits_index_io;
26 drop prepare dump_waits_table_io;
27 drop prepare dump_waits_table_lock;
28 drop prepare dump_objects_summary;
30 truncate
table performance_schema.accounts;
31 truncate
table performance_schema.users;
32 truncate
table performance_schema.hosts;
34 truncate
table performance_schema.setup_actors;
35 insert into performance_schema.setup_actors
36 select * from
test.setup_actors;
39 truncate
table performance_schema.setup_objects;
40 insert into performance_schema.setup_objects
41 select * from
test.setup_objects;
48 update performance_schema.threads
set instrumented=
'YES';
49 update performance_schema.setup_instruments
set enabled=
'YES', timed=
'YES';
50 update performance_schema.setup_consumers
set enabled=
'YES';