1 # Tests for the performance schema
3 # ==========================================
4 # HELPER include/event_aggregate_cleanup.inc
5 # ==========================================
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;
21 drop prepare dump_waits_account;
22 drop prepare dump_waits_user;
23 drop prepare dump_waits_host;
24 drop prepare dump_waits_history;
25 drop prepare dump_waits_global;
27 drop prepare dump_stages_account;
28 drop prepare dump_stages_user;
29 drop prepare dump_stages_host;
30 drop prepare dump_stages_history;
31 drop prepare dump_stages_global;
33 drop prepare dump_statements_account;
34 drop prepare dump_statements_user;
35 drop prepare dump_statements_host;
36 drop prepare dump_statements_history;
37 drop prepare dump_statements_global;
39 drop prepare dump_users;
40 drop prepare dump_hosts;
41 drop prepare dump_accounts;
43 truncate
table performance_schema.accounts;
44 truncate
table performance_schema.users;
45 truncate
table performance_schema.hosts;
47 truncate
table performance_schema.setup_actors;
48 insert into performance_schema.setup_actors
49 select * from
test.setup_actors;
53 update performance_schema.threads
set instrumented=
'YES';
54 update performance_schema.setup_instruments
set enabled=
'YES', timed=
'YES';