⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
suite
/
rpl
/
t
/
View File Name :
rpl_ignore_revoke.test
# test verifies that REVOKE must not be replicated when # slave server starts with --replicate-wild-ignore-table=mysql.% # the option is set in rpl_ignore_revoke-slave.opt # The first part of BUG#9483 for GRANT is checked by # existed specific rpl_ignore_grant test case (BUG#980) --source include/not_group_replication_plugin.inc source include/master-slave.inc; ### CLEAN-UP: create an account and manually duplicate it on the slave connection master; 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 */; --source include/sync_slave_sql_with_master.inc #connection 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' /* slave:must be N */; ### TEST #connection slave; grant select on *.* to 'user_foo'@'%' identified by 'user_foopass'; select select_priv from mysql.user where user='user_foo' /* slave:must be Y */; connection master; revoke select on *.* from 'user_foo'; select select_priv from mysql.user where user='user_foo' /* master:must be N */; --source include/sync_slave_sql_with_master.inc #connection slave; select select_priv from mysql.user where user='user_foo' /* slave:must get Y */; ### CLEAN-UP connection slave; --disable_abort_on_error revoke select on *.* FROM 'user_foo'; --enable_abort_on_error connection master; delete from mysql.user where user="user_foo"; --source include/sync_slave_sql_with_master.inc # Since changes to mysql.* are ignored, the revoke need to # be done on slave as well delete from mysql.user where user="user_foo"; --source include/rpl_end.inc