mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
30 lines
1.1 KiB
Text
30 lines
1.1 KiB
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';
|
|
delete from mysql.user where user="user_foo";
|
|
delete from mysql.user where user="user_foo";
|