include/master-slave.inc [connection master] create temporary table t1 (n int); insert into t1 values(1); connection slave; show status like 'Slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 1 connection master; delete from t1; connection slave; show status like 'Slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 1 connection master; truncate t1; connection slave; show status like 'Slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 1 disconnect master; connection slave; show status like 'Slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 0 include/rpl_end.inc