| Server IP : 88.99.149.37 / Your IP : 216.73.216.141 Web Server : nginx/1.31.2 System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64 User : muralimurth ( 1015) PHP Version : 8.4.23 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/mysql/mysql-test/suite/rpl/t/ |
Upload File : |
# # Tests for replication of statements that manipulate databases. # # For this test file, we have a number of databases. All databases # with "greek" names will be replicated on the slave, while other names # (e.g., american) will not be replicated. # source include/master-slave.inc; # Bug#6391 (binlog-do-db rules ignored) # In this case, 'mysqltest_bob' should not be replicated to the slave. --disable_warnings DROP DATABASE IF EXISTS mysqltest_prometheus; DROP DATABASE IF EXISTS mysqltest_sisyfos; DROP DATABASE IF EXISTS mysqltest_bob; sync_slave_with_master; # This database is not replicated DROP DATABASE IF EXISTS mysqltest_bob; --enable_warnings connection master; CREATE DATABASE mysqltest_prometheus; CREATE DATABASE mysqltest_sisyfos; CREATE DATABASE mysqltest_bob; USE mysqltest_sisyfos; # These should be replicated CREATE TABLE t1 (b int); INSERT INTO t1 VALUES(1); USE mysqltest_bob; # These should *not* be replicated CREATE TABLE t2 (b int); INSERT INTO t2 VALUES(2); # Current database is now 'mysqltest_bob' # The following should be replicated ALTER DATABASE mysqltest_sisyfos CHARACTER SET latin1; USE mysqltest_sisyfos; # The following should *not* be replicated ALTER DATABASE mysqltest_bob CHARACTER SET latin1; SHOW DATABASES LIKE 'mysql%'; sync_slave_with_master; SHOW DATABASES LIKE 'mysql%'; connection master; DROP DATABASE IF EXISTS mysqltest_sisyfos; USE mysqltest_prometheus; CREATE TABLE t1 (a INT); INSERT INTO t1 VALUES (1); CREATE DATABASE mysqltest_sisyfos; USE mysqltest_sisyfos; CREATE TABLE t2 (a INT); let $VERSION=`select version()`; SHOW DATABASES LIKE 'mysql%'; sync_slave_with_master; SHOW DATABASES LIKE 'mysql%'; USE mysqltest_prometheus; SHOW TABLES; USE mysqltest_sisyfos; SHOW TABLES; connection master; DROP DATABASE IF EXISTS mysqltest_prometheus; DROP DATABASE IF EXISTS mysqltest_sisyfos; DROP DATABASE IF EXISTS mysqltest_bob; sync_slave_with_master; # End of 4.1 tests --source include/rpl_end.inc