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;
|