include/master-slave.inc [connection master] CREATE TABLE t1(a int); INSERT INTO t1 VALUES(1); connection slave; SET @saved_dbug = @@GLOBAL.debug_dbug; SET @@global.debug_dbug= 'd,simulate_error_on_packet_write'; START SLAVE; SET DEBUG_SYNC= 'now WAIT_FOR parked'; SET @@GLOBAL.debug_dbug = @saved_dbug; SET DEBUG_SYNC= 'now SIGNAL continue'; SET DEBUG_SYNC= 'RESET'; include/wait_for_slave_io_to_start.inc include/wait_for_slave_sql_to_start.inc connection master; include/sync_slave_sql_with_master.inc SELECT * FROM t1; a 1 connection master; DROP TABLE t1; include/rpl_end.inc