2003-08-18 23:08:08 +02:00
|
|
|
stop slave;
|
2003-08-02 23:46:26 +02:00
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
|
|
reset master;
|
|
|
|
reset slave;
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2003-08-18 23:08:08 +02:00
|
|
|
start slave;
|
2004-07-08 15:54:07 +02:00
|
|
|
delete from mysql.user where user=_binary'rpl_do_grant';
|
|
|
|
delete from mysql.db where user=_binary'rpl_do_grant';
|
2003-08-02 23:46:26 +02:00
|
|
|
flush privileges;
|
2004-07-08 15:54:07 +02:00
|
|
|
delete from mysql.user where user=_binary'rpl_ignore_grant';
|
|
|
|
delete from mysql.db where user=_binary'rpl_ignore_grant';
|
2003-08-02 23:46:26 +02:00
|
|
|
flush privileges;
|
|
|
|
grant select on *.* to rpl_do_grant@localhost;
|
|
|
|
grant drop on test.* to rpl_do_grant@localhost;
|
|
|
|
show grants for rpl_do_grant@localhost;
|
|
|
|
Grants for rpl_do_grant@localhost
|
|
|
|
GRANT SELECT ON *.* TO 'rpl_do_grant'@'localhost'
|
|
|
|
GRANT DROP ON `test`.* TO 'rpl_do_grant'@'localhost'
|
|
|
|
set password for rpl_do_grant@localhost=password("does it work?");
|
2004-07-08 15:54:07 +02:00
|
|
|
select password<>_binary'' from mysql.user where user=_binary'rpl_do_grant';
|
|
|
|
password<>_binary''
|
2003-08-02 23:46:26 +02:00
|
|
|
1
|
2004-07-08 15:54:07 +02:00
|
|
|
delete from mysql.user where user=_binary'rpl_do_grant';
|
|
|
|
delete from mysql.db where user=_binary'rpl_do_grant';
|
2003-08-02 23:46:26 +02:00
|
|
|
flush privileges;
|
|
|
|
flush privileges;
|
2005-12-22 06:39:02 +01:00
|
|
|
show grants for rpl_do_grant@localhost;
|
|
|
|
ERROR 42000: There is no such grant defined for user 'rpl_do_grant' on host 'localhost'
|
|
|
|
show grants for rpl_do_grant@localhost;
|
|
|
|
ERROR 42000: There is no such grant defined for user 'rpl_do_grant' on host 'localhost'
|
|
|
|
create user rpl_do_grant@localhost;
|
|
|
|
show grants for rpl_do_grant@localhost;
|
|
|
|
Grants for rpl_do_grant@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'rpl_do_grant'@'localhost'
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
|
|
|
|
show grants for rpl_do_grant@localhost;
|
|
|
|
Grants for rpl_do_grant@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'rpl_do_grant'@'localhost'
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
|
|
|
|
rename user rpl_do_grant@localhost to rpl_do_grant2@localhost;
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
Grants for rpl_do_grant2@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
Grants for rpl_do_grant2@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
grant DELETE,INSERT on mysqltest1.* to rpl_do_grant2@localhost;
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
Grants for rpl_do_grant2@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
GRANT INSERT, DELETE ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
Grants for rpl_do_grant2@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
GRANT INSERT, DELETE ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
revoke DELETE on mysqltest1.* from rpl_do_grant2@localhost;
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
Grants for rpl_do_grant2@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
GRANT INSERT ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
Grants for rpl_do_grant2@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
GRANT INSERT ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
revoke all privileges, grant option from rpl_do_grant2@localhost;
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
Grants for rpl_do_grant2@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
Grants for rpl_do_grant2@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
|
|
|
|
drop user rpl_do_grant2@localhost;
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
|
|
|
|
show grants for rpl_do_grant2@localhost;
|
|
|
|
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
|