Server IP : 172.67.216.182 / Your IP : 172.68.164.105 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/binlog/t/ |
Upload File : |
# ==== Purpose ==== # # This test will check that mysql client program is able to apply # GTID skipped transactions without errors in the "use `<DATABASE>`" # statements. # # ==== Related Bugs and Worklogs ==== # # BUG#26128931 USE `DATABASE` STATEMENT FAILS INSIDE GTID SKIPPED TRANSACTION # --source include/have_gtid.inc --echo # --echo # 1. Apply some data on server. --echo # CREATE TABLE t1 (c1 INT) ENGINE=InnoDB; INSERT INTO t1 VALUES (1); INSERT INTO t1 VALUES (2); INSERT INTO t1 VALUES (3); --echo # --echo # 2. Check that a SQL file with already logged transactions --echo # is correctly skipped when is replayed. --echo # --let $MYSQLD_DATADIR= `SELECT @@DATADIR` --let $binlog_file= query_get_value(SHOW MASTER STATUS, File, 1) FLUSH LOGS; --exec $MYSQL_BINLOG $MYSQLD_DATADIR/$binlog_file > $MYSQLTEST_VARDIR/tmp/binlog_gtid_set_gtid_next.sql --exec $MYSQL < $MYSQLTEST_VARDIR/tmp/binlog_gtid_set_gtid_next.sql --remove_file $MYSQLTEST_VARDIR/tmp/binlog_gtid_set_gtid_next.sql --echo # --echo # 3. Clean up. --echo # DROP TABLE t1;