Server IP : 104.21.38.3 / Your IP : 162.158.189.158 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/ndb_rpl/t/ |
Upload File : |
# # Munch the mysqlbinlog tool output into deterministic form to look at server ids # --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG --verbose $MYSQLD_DATADIR/$BINLOG_FILENAME.000001 > $MYSQLTEST_VARDIR/tmp/rpl_ndb_mysqlbinlog.sql set sql_log_bin=0; create table raw_binlog_rows (txt varchar(1000)); --eval load data local infile '$MYSQLTEST_VARDIR/tmp/rpl_ndb_mysqlbinlog.sql' into table raw_binlog_rows columns terminated by '\n'; --enable_query_log # Remove non-deterministic and uninteresting elements from the mysqlbinlog output # Right trim of length-17 takes out the initial timestamp # We are primarily interested in server id and event type --replace_regex /thread_id=[0-9]*/ / /exec_time=[0-9]*/ / /end_log_pos [0-9]*/ / /table id [0-9]*/ / /error_code=[0-9]*/ / /mapped to number [0-9]*/ / select replace(right(txt, length(txt)-17), '\r', '') as binlog_entries from raw_binlog_rows where txt like '%server id%' and not (txt like '%Start%' or txt like '%Rotate%'); --disable_query_log drop table raw_binlog_rows; set sql_log_bin=1; --enable_query_log