Server IP : 49.212.180.16 / Your IP : 3.144.115.82 Web Server : Apache System : FreeBSD www2606.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 User : utannto ( 1076) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/rs/mysql/5.1/mysql-test/include/ |
Upload File : |
# ==== Purpose ==== # # Kill a query, sync master with slave, and diff the output of a # statement on master and slave to check if statement is correctly # replicated. # # ==== Usage ==== # # connection <CONNECTION>; # let $connection_name=<CONNECTION> # let $connection_id=`SELECT CONNECTION_ID()`; # let $rpl_diff_statement=<SQL COMMAND>; # send <SQL COMMAND>; # source include/kill_query_and_diff_master_slave.inc; # # Note: <CONNECTION> must not be 'master'. # # See also kill_query.inc and rpl_diff.inc for more # information source include/kill_query.inc; # Release the debug lock if used, so that the statements in # rpl_diff.inc will not be blocked. connection master; disable_query_log; disable_result_log; if ($debug_lock) { eval SELECT RELEASE_LOCK($debug_lock); } enable_result_log; enable_query_log; --source include/rpl_diff.inc # Acquire the debug lock again if used connection master; disable_query_log; disable_result_log; if ($debug_lock) { eval SELECT GET_LOCK($debug_lock, 10); } enable_result_log; enable_query_log; connection $connection_name;