mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
29 lines
987 B
Text
29 lines
987 B
Text
|
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';
|