rpl_row_drop.test
来自「开启mysql的远程连接的方法 mysql-noinstall-5.1.6-al」· TEST 代码 · 共 48 行
TEST
48 行
-- source include/have_binlog_format_row.inc-- source include/master-slave.inc# Bug#12415: DROP of temporary table on master stops slaveconnection master;--echo **** On Master ****CREATE TABLE t1 (a int);CREATE TABLE t2 (a int);CREATE TEMPORARY TABLE t2 (a int, b int);SHOW TABLES;sync_slave_with_master;--echo **** On Slave ****SHOW TABLES;connection master;--echo **** On Master ****DROP TABLE t2; # Dropping the temporary tableSHOW TABLES;sync_slave_with_master;--echo **** On Slave ****SHOW TABLES; # There should be two tables on the slaveconnection master;--echo **** On Master ****CREATE TEMPORARY TABLE t2 (a int, b int);SHOW TABLES;sync_slave_with_master;--echo **** On Slave ****SHOW TABLES;connection master;--echo **** On Master ****# Should drop the non-temporary table t1 and the temporary table t2DROP TABLE t1,t2;let $VERSION=`select version()`;--replace_result $VERSION VERSIONSHOW BINLOG EVENTS;SHOW TABLES;sync_slave_with_master;--echo **** On Slave ****SHOW TABLES;--disable_query_log--disable_warningsconnection master;DROP TABLE IF EXISTS t2;sync_slave_with_master;--enable_warnings--enable_query_log
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?