2006-01-10 12:44:08 +01:00
|
|
|
stop slave;
|
|
|
|
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;
|
|
|
|
start slave;
|
|
|
|
grant select on *.* to 'user_foo'@'%' identified by 'user_foopass';
|
|
|
|
revoke select on *.* from 'user_foo'@'%';
|
|
|
|
select select_priv from mysql.user where user='user_foo' /* master:must be N */;
|
|
|
|
select_priv
|
|
|
|
N
|
|
|
|
grant select on *.* to 'user_foo'@'%' identified by 'user_foopass';
|
|
|
|
revoke select on *.* from 'user_foo'@'%';
|
|
|
|
select select_priv from mysql.user where user='user_foo' /* slave:must be N */;
|
|
|
|
select_priv
|
|
|
|
N
|
|
|
|
grant select on *.* to 'user_foo'@'%' identified by 'user_foopass';
|
|
|
|
select select_priv from mysql.user where user='user_foo' /* slave:must be Y */;
|
|
|
|
select_priv
|
|
|
|
Y
|
|
|
|
revoke select on *.* from 'user_foo';
|
|
|
|
select select_priv from mysql.user where user='user_foo' /* master:must be N */;
|
|
|
|
select_priv
|
|
|
|
N
|
|
|
|
select select_priv from mysql.user where user='user_foo' /* slave:must get Y */;
|
|
|
|
select_priv
|
|
|
|
Y
|
|
|
|
revoke select on *.* FROM 'user_foo';
|
2006-01-26 17:54:34 +01:00
|
|
|
delete from mysql.user where user="user_foo";
|
2006-11-15 10:23:27 +01:00
|
|
|
delete from mysql.user where user="user_foo";
|