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] include/install_semisync.inc SET @debug_save= @@GLOBAL.DEBUG; SET GLOBAL rpl_semi_sync_master_timeout= 600000; include/sync_slave_sql_with_master.inc SET GLOBAL debug= 'd,semi_sync_3-way_deadlock'; SET DEBUG_SYNC= "before_process_commit_stage_queue WAIT_FOR signal.rotate_finished no_clear_event"; # Build 10 connections to master server # Execute INSERT statement on these 10 connections in parallel SET DEBUG_SYNC= "before_rotate_binlog SIGNAL signal.rotate_finished"; # Rotate binlog file FLUSH LOGS; SET DEBUG_SYNC= 'RESET'; SET @@GLOBAL.DEBUG= @debug_save; include/sync_slave_sql_with_master.inc include/uninstall_semisync.inc include/rpl_end.inc