| Server IP : 88.99.149.37 / Your IP : 216.73.216.141 Web Server : nginx/1.31.2 System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64 User : muralimurth ( 1015) PHP Version : 8.4.23 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/mysql/mysql-test/suite/rpl/r/ |
Upload File : |
include/master-slave.inc [connection master] connection slave; SET GLOBAL read_only=1; connection master; CREATE PROCEDURE testproc() BEGIN DROP TEMPORARY TABLE IF EXISTS t1_tmp; DROP TEMPORARY TABLE IF EXISTS t2_tmp; CREATE TEMPORARY TABLE IF NOT EXISTS t1_tmp ( t1 varchar(400) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TEMPORARY TABLE IF NOT EXISTS t2_tmp ( t2 varchar(16) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; END| SET GLOBAL read_only=1; CALL testproc(); ******** None of the above DROP TEMPORARY TABLE statement should be found in binary log ******** include/show_binlog_events.inc Log_name Pos Event_type Server_id End_log_pos Info master-bin.000001 # Gtid # # GTID #-#-# master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE `testproc`() BEGIN DROP TEMPORARY TABLE IF EXISTS t1_tmp; DROP TEMPORARY TABLE IF EXISTS t2_tmp; CREATE TEMPORARY TABLE IF NOT EXISTS t1_tmp ( t1 varchar(400) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TEMPORARY TABLE IF NOT EXISTS t2_tmp ( t2 varchar(16) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; END connection slave; SELECT @@read_only; @@read_only 1 ======== CLEAN UP ========= connection master; DROP TEMPORARY TABLE t1_tmp; DROP TEMPORARY TABLE t2_tmp; DROP PROCEDURE testproc; SET GLOBAL read_only=0; connection slave; SET GLOBAL read_only=0; include/rpl_end.inc