Server IP : 104.21.38.3 / Your IP : 104.23.175.224 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/r/ |
Upload File : |
RESET MASTER; CREATE TABLE t1 ( c1 INT NOT NULL PRIMARY KEY ); # Generate master-bin.000002 FLUSH LOGS; INSERT INTO t1 VALUES (1); # Generate master-bin.000003 FLUSH LOGS; INSERT INTO t1 VALUES (2); # Generate master-bin.000004 FLUSH LOGS; INSERT INTO t1 VALUES (3); # Move master-bin.000002 to master-bin.000002.bkp and # master-bin.000003 to master-bin.000003.bkp # # Only master-bin.000001 and master-bin.000004 remain, others are moved # , restart the server with enabled binlog-gtid-simple-recovery # and gtid_mode on. If the server scans more than one binary log in # every iteration, it will cause read error on the 2nd and 3rd files. # # restart:--gtid-mode=on --enforce-gtid-consistency --log-slave-updates --binlog-gtid-simple-recovery=ON # # Verify that GLOBAL.GTID_EXECUTED and GLOBAL.GTID_PURGED are empty # after server restarts. # include/assert.inc [GLOBAL.GTID_EXECUTED must be empty.] include/assert.inc [GLOBAL.GTID_PURGED must be empty.] # # Write one gtid event into master-bin.000004 # DROP TABLE t1; # Move master-bin.000004 to master-bin.000004.bkp # # Only master-bin.000001 and master-bin.000005 remain, others are moved # , restart the server with enabled binlog-gtid-simple-recovery # and gtid_mode on again. If the server scans more than one binary # log in every iteration, it will cause read error on the 2nd and # 4th files. # # restart:--gtid-mode=on --enforce-gtid-consistency --log-slave-updates --binlog-gtid-simple-recovery=ON # # Verify that GLOBAL.GTID_EXECUTED contains committed gtid MASTER_UUID:1 # and GLOBAL.GTID_PURGED is empty after server restarts again. # include/assert.inc [committed gtid MASTER_UUID:1] include/assert.inc [GLOBAL.GTID_PURGED is empty] # # Move binary logs back. # # # PURGE BINARY LOGS TO master-bin.000006 # PURGE BINARY LOGS TO 'master-bin.000006'; include/assert.inc [purged gtids MASTER_UUID:1]