include/master-slave.inc [connection master] set @old_dbug=@@global.debug_dbug; set global debug_dbug='d,fail_com_register_slave'; stop slave; reset slave; include/wait_for_slave_to_stop.inc start slave; stop slave; include/wait_for_slave_to_stop.inc set global debug_dbug=@old_dbug; kill DUMP_THREAD; show slave hosts; Server_id Host Port Master_id start slave; include/rpl_end.inc