slave stop; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; reset master; reset slave; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; slave start; reset master; change master to master_host='127.0.0.1',master_port=9307, master_user='root'; start slave; create temporary table t1 (a int); create temporary table t1 (a int); show status like 'slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 2 create temporary table t1 (a int); create temporary table t1 (a int); show status like 'slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 4 stop slave; insert into t1 values(1); create table t2 as select * from t1; start slave; show status like 'slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 4 select * from t2; a 1 drop table t2;