include/master-slave.inc Warnings: Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. [connection master] [connection slave] CREATE DATABASE new_test; [connection master] use test; CREATE TEMPORARY TABLE t1(id int); include/sync_slave_sql_with_master.inc include/show_binlog_events.inc Log_name Pos Event_type Server_id End_log_pos Info slave-bin.000001 # Query # # CREATE DATABASE new_test slave-bin.000001 # Query # # use `new_test`; CREATE TEMPORARY TABLE t1(id int) SHOW STATUS LIKE 'Slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 1 [connection master] use test; DROP TEMPORARY TABLE IF EXISTS t1; include/sync_slave_sql_with_master.inc include/show_binlog_events.inc Log_name Pos Event_type Server_id End_log_pos Info slave-bin.000001 # Query # # CREATE DATABASE new_test slave-bin.000001 # Query # # use `new_test`; CREATE TEMPORARY TABLE t1(id int) slave-bin.000001 # Query # # use `new_test`; DROP TEMPORARY TABLE IF EXISTS `t1` /* generated by server */ SHOW STATUS LIKE 'Slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 0 [connection master] use test; CREATE TEMPORARY TABLE t1(id int); include/sync_slave_sql_with_master.inc SHOW STATUS LIKE 'Slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 1 [connection slave] SHOW STATUS LIKE 'Slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 0 DROP DATABASE new_test; include/rpl_end.inc