Debian Codegraph @

mysql-test/suite/perfschema/t/dml_accounts.test

raw
1 # Tests for PERFORMANCE_SCHEMA
2
3 --disable_result_log
4 select * from performance_schema.accounts
5 limit 1;
6
7 select * from performance_schema.accounts
8 where user='FOO' or host='BAR';
9 --enable_result_log
10
11 --error ER_TABLEACCESS_DENIED_ERROR
12 insert into performance_schema.accounts
13 set user='FOO', host='BAR',
14 current_connections=1, total_connections=2;
15
16 --error ER_TABLEACCESS_DENIED_ERROR
17 update performance_schema.accounts
18 set current_connections=12;
19
20 --error ER_TABLEACCESS_DENIED_ERROR
21 update performance_schema.accounts
22 set current_connections=12 where host like "FOO";
23
24 --error ER_TABLEACCESS_DENIED_ERROR
25 delete from performance_schema.accounts
26 where total_connections=1;
27
28 --error ER_TABLEACCESS_DENIED_ERROR
29 delete from performance_schema.accounts;
30
31 -- error ER_TABLEACCESS_DENIED_ERROR
32 LOCK TABLES performance_schema.accounts READ;
33 UNLOCK TABLES;
34
35 -- error ER_TABLEACCESS_DENIED_ERROR
36 LOCK TABLES performance_schema.accounts WRITE;
37 UNLOCK TABLES;
38