1include/master-slave.inc 2[connection master] 3CREATE TABLE t1(a int); 4INSERT INTO t1 VALUES(1); 5connection slave; 6SET @saved_dbug = @@GLOBAL.debug_dbug; 7SET @@global.debug_dbug= 'd,simulate_error_on_packet_write'; 8START SLAVE; 9SET DEBUG_SYNC= 'now WAIT_FOR parked'; 10SET @@GLOBAL.debug_dbug = @saved_dbug; 11SET DEBUG_SYNC= 'now SIGNAL continue'; 12SET DEBUG_SYNC= 'RESET'; 13include/wait_for_slave_io_to_start.inc 14include/wait_for_slave_sql_to_start.inc 15connection master; 16include/sync_slave_sql_with_master.inc 17SELECT * FROM t1; 18a 191 20connection master; 21DROP TABLE t1; 22include/rpl_end.inc 23