2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
7
delete from mysql.user where user=_binary'rpl_do_grant';
8
delete from mysql.db where user=_binary'rpl_do_grant';
10
delete from mysql.user where user=_binary'rpl_ignore_grant';
11
delete from mysql.db where user=_binary'rpl_ignore_grant';
13
grant select on *.* to rpl_do_grant@localhost;
14
grant drop on test.* to rpl_do_grant@localhost;
15
show grants for rpl_do_grant@localhost;
16
Grants for rpl_do_grant@localhost
17
GRANT SELECT ON *.* TO 'rpl_do_grant'@'localhost'
18
GRANT DROP ON `test`.* TO 'rpl_do_grant'@'localhost'
19
set password for rpl_do_grant@localhost=password("does it work?");
20
select password<>_binary'' from mysql.user where user=_binary'rpl_do_grant';
23
update mysql.user set password='' where user='rpl_do_grant';
25
select password<>'' from mysql.user where user='rpl_do_grant';
28
set sql_mode='ANSI_QUOTES';
29
set password for rpl_do_grant@localhost=password('does it work?');
31
select password<>'' from mysql.user where user='rpl_do_grant';
34
delete from mysql.user where user=_binary'rpl_do_grant';
35
delete from mysql.db where user=_binary'rpl_do_grant';
37
delete from mysql.user where user=_binary'rpl_do_grant';
38
delete from mysql.db where user=_binary'rpl_do_grant';
40
show grants for rpl_do_grant@localhost;
41
ERROR 42000: There is no such grant defined for user 'rpl_do_grant' on host 'localhost'
42
show grants for rpl_do_grant@localhost;
43
ERROR 42000: There is no such grant defined for user 'rpl_do_grant' on host 'localhost'
44
create user rpl_do_grant@localhost;
45
show grants for rpl_do_grant@localhost;
46
Grants for rpl_do_grant@localhost
47
GRANT USAGE ON *.* TO 'rpl_do_grant'@'localhost'
48
show grants for rpl_do_grant2@localhost;
49
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
50
show grants for rpl_do_grant@localhost;
51
Grants for rpl_do_grant@localhost
52
GRANT USAGE ON *.* TO 'rpl_do_grant'@'localhost'
53
show grants for rpl_do_grant2@localhost;
54
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
55
rename user rpl_do_grant@localhost to rpl_do_grant2@localhost;
56
show grants for rpl_do_grant2@localhost;
57
Grants for rpl_do_grant2@localhost
58
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
59
show grants for rpl_do_grant2@localhost;
60
Grants for rpl_do_grant2@localhost
61
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
62
grant DELETE,INSERT on mysqltest1.* to rpl_do_grant2@localhost;
63
show grants for rpl_do_grant2@localhost;
64
Grants for rpl_do_grant2@localhost
65
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
66
GRANT INSERT, DELETE ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
67
show grants for rpl_do_grant2@localhost;
68
Grants for rpl_do_grant2@localhost
69
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
70
GRANT INSERT, DELETE ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
71
revoke DELETE on mysqltest1.* from rpl_do_grant2@localhost;
72
show grants for rpl_do_grant2@localhost;
73
Grants for rpl_do_grant2@localhost
74
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
75
GRANT INSERT ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
76
show grants for rpl_do_grant2@localhost;
77
Grants for rpl_do_grant2@localhost
78
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
79
GRANT INSERT ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
80
revoke all privileges, grant option from rpl_do_grant2@localhost;
81
show grants for rpl_do_grant2@localhost;
82
Grants for rpl_do_grant2@localhost
83
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
84
show grants for rpl_do_grant2@localhost;
85
Grants for rpl_do_grant2@localhost
86
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
87
drop user rpl_do_grant2@localhost;
88
show grants for rpl_do_grant2@localhost;
89
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
90
show grants for rpl_do_grant2@localhost;
91
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'