Server IP : 104.21.38.3 / Your IP : 172.69.165.78 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/rpl/t/ |
Upload File : |
# 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