3
SELECT SCHEMA_NAME FROM DATA_DICTIONARY.SCHEMAS ORDER BY SCHEMA_NAME;
12
create table t1 (kill_id int);
13
insert into t1 values(connection_id());
14
SELECT * from user1.dont_exist;
15
ERROR 42S02: Unknown table 'user1.dont_exist'
16
SELECT SCHEMA_NAME FROM DATA_DICTIONARY.SCHEMAS ORDER BY SCHEMA_NAME;
21
SELECT * from user2.dont_exist;
22
ERROR 42000: Access denied for user 'user1' to schema 'user2'
23
create schema authorize_fail;
24
ERROR 42000: Access denied for user 'user1' to schema 'authorize_fail'
26
ERROR 42000: Access denied for user 'user1' to schema 'user2'
27
create table t1 (kill_id int);
28
insert into t1 values(connection_id());
29
SELECT USERNAME, DB FROM DATA_DICTIONARY.PROCESSLIST ORDER BY USERNAME, DB;
33
select IF(((@id := kill_id) - kill_id), "NO", "YES") from t1;
34
IF(((@id := kill_id) - kill_id), "NO", "YES")
37
select IF(((@id := kill_id) - kill_id), "NO", "YES") from t1;
38
IF(((@id := kill_id) - kill_id), "NO", "YES")
40
select @id != connection_id();
41
@id != connection_id()
43
update t1 set kill_id = connection_id();
44
SELECT USERNAME, DB FROM DATA_DICTIONARY.PROCESSLIST ORDER BY USERNAME, DB;
47
select IF(((@id := kill_id) - kill_id), "NO", "YES") from t1;
48
IF(((@id := kill_id) - kill_id), "NO", "YES")
51
ERROR HY000: Unknown session id: #
52
SELECT USERNAME, DB FROM DATA_DICTIONARY.PROCESSLIST ORDER BY USERNAME, DB;
59
select IF(((@id := kill_id) - kill_id), "NO", "YES") from t1;
60
IF(((@id := kill_id) - kill_id), "NO", "YES")
63
select IF(((@id := kill_id) - kill_id), "NO", "YES") from t1;
64
IF(((@id := kill_id) - kill_id), "NO", "YES")
66
select @id != connection_id();
67
@id != connection_id()
69
connect(localhost,authz,,authz_no,MASTER_PORT,);
70
ERROR 42000: Access denied for user 'authz' to schema 'authz_no'