Server IP : 172.67.216.182 / Your IP : 172.71.124.156 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/extra/binlog_tests/ |
Upload File : |
# ==== Purpose ==== # # Test the --[start|stop]-[position|datetime] options to mysqlbinlog, # with/without --read-from-remote-server, with one or two binary logs # as input. # # ==== Implementation ==== # TODO: Need to look at making row based version once new binlog client is complete. CREATE TABLE t1 (a INT); RESET MASTER; --source extra/binlog_tests/binlog_mysqlbinlog_fill.inc --let $MYSQLD_DATADIR= `select @@datadir` --echo --echo ==== Local ==== --let $start_position= $pos_1 --let $start_datetime= $datetime_1 --let $stop_position= $pos_2 --let $stop_datetime= $datetime_2 --let $extra_options= $MYSQLD_DATADIR/$file_1 --source extra/binlog_tests/mysqlbinlog_start_stop_1.inc --echo --echo ==== Local with 2 binlogs on command line ==== # This is to verify that some options apply only to first, or last binlog --let $stop_position= $pos_3 --let $stop_datetime= $datetime_3 --let $extra_options= $MYSQLD_DATADIR/$file_1 $MYSQLD_DATADIR/$file_2 --source extra/binlog_tests/mysqlbinlog_start_stop_1.inc --echo --echo ==== Remote ==== --let $stop_position= $pos_2 --let $stop_datetime= $datetime_2 --let $extra_options= --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT $file_1 --source extra/binlog_tests/mysqlbinlog_start_stop_1.inc --echo --echo ==== Remote with 2 binlogs on command line ==== --let $stop_position= $pos_3 --let $stop_datetime= $datetime_3 --let $extra_options= --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT $file_1 $file_2 --source extra/binlog_tests/mysqlbinlog_start_stop_1.inc # ==== to-last-log ==== --let $extra_options= --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT $file_1 --let $options= --to-last-log --source extra/binlog_tests/mysqlbinlog_start_stop_2.inc --echo --echo ==== clean up ==== DROP TABLE t1;