master [localhost] {msandbox} (test) > select @@version; +------------+ | @@version | +------------+ | 5.7.22-log | +------------+ 1 row in set (0.00 sec) --- master [localhost] {msandbox} (test) > STOP SLAVE; SHOW SLAVE STATUS\G Query OK, 0 rows affected (0.00 sec) *************************** 1. row *************************** Slave_IO_State: Master_Host: 127.0.0.1 Master_User: rsandbox Master_Port: 16746 Connect_Retry: 60 Master_Log_File: mysql-bin.000002 Read_Master_Log_Pos: 112234 Relay_Log_File: mysql-relay.000006 Relay_Log_Pos: 320 Relay_Master_Log_File: mysql-bin.000002 Slave_IO_Running: No Slave_SQL_Running: No Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 112234 Relay_Log_Space: 894 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: NULL Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 200 Master_UUID: 00016746-2222-2222-2222-222222222222 Master_Info_File: /home/jgagne/sandboxes/rsandbox_5_7_22/master/data/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: Executed_Gtid_Set: Auto_Position: 0 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: 1 row in set (0.00 sec) --- slave2 [localhost] {msandbox} ((none)) > SELECT MASTER_POS_WAIT('mysql-relay.000006', 112234); +-----------------------------------------------+ | MASTER_POS_WAIT('mysql-relay.000006', 112234) | +-----------------------------------------------+ | NULL | +-----------------------------------------------+ 1 row in set (0.00 sec) slave2 [localhost] {msandbox} ((none)) > STOP SLAVE; SHOW SLAVE STATUS\G SHOW MASTER STATUS\G START SLAVE; Query OK, 0 rows affected (0.00 sec) *************************** 1. row *************************** Slave_IO_State: Master_Host: 127.0.0.1 Master_User: rsandbox Master_Port: 16745 Connect_Retry: 60 Master_Log_File: mysql-bin.000002 Read_Master_Log_Pos: 143517 Relay_Log_File: mysql-relay.000005 Relay_Log_Pos: 143730 Relay_Master_Log_File: mysql-bin.000002 Slave_IO_Running: No Slave_SQL_Running: No Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 143517 Relay_Log_Space: 144099 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: NULL Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 100 Master_UUID: 00016745-1111-1111-1111-111111111111 Master_Info_File: /home/jgagne/sandboxes/rsandbox_5_7_22/node2/data/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: Executed_Gtid_Set: Auto_Position: 0 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: 1 row in set (0.00 sec) *************************** 1. row *************************** File: mysql-bin.000002 Position: 136484 Binlog_Do_DB: Binlog_Ignore_DB: Executed_Gtid_Set: 1 row in set (0.00 sec) Query OK, 0 rows affected (0.00 sec) --- master [localhost] {msandbox} (test) > START SLAVE UNTIL MASTER_LOG_FILE = 'mysql-bin.000002', MASTER_LOG_POS = 143517; Query OK, 0 rows affected, 1 warning (0.01 sec) master [localhost] {msandbox} (test) > SELECT MASTER_POS_WAIT('mysql-bin.000002', 143517); +---------------------------------------------+ | MASTER_POS_WAIT('mysql-bin.000002', 143517) | +---------------------------------------------+ | NULL | +---------------------------------------------+ 1 row in set (0.00 sec) master [localhost] {msandbox} (test) > SHOW SLAVE STATUS\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 127.0.0.1 Master_User: rsandbox Master_Port: 16746 Connect_Retry: 60 Master_Log_File: mysql-bin.000002 Read_Master_Log_Pos: 233734 Relay_Log_File: mysql-relay.000007 Relay_Log_Pos: 320 Relay_Master_Log_File: mysql-bin.000002 Slave_IO_Running: Yes Slave_SQL_Running: No Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 175953 Relay_Log_Space: 689 Until_Condition: Master Until_Log_File: mysql-bin.000002 Until_Log_Pos: 143517 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: NULL Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 200 Master_UUID: 00016746-2222-2222-2222-222222222222 Master_Info_File: /home/jgagne/sandboxes/rsandbox_5_7_22/master/data/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: Executed_Gtid_Set: Auto_Position: 0 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: 1 row in set (0.00 sec) master [localhost] {msandbox} (test) > STOP SLAVE; Query OK, 0 rows affected (0.00 sec) master [localhost] {msandbox} (test) > CHANGE MASTER TO MASTER_HOST = '127.0.0.1', MASTER_PORT = 16747; Query OK, 0 rows affected (0.01 sec) master [localhost] {msandbox} (test) > CHANGE MASTER TO MASTER_LOG_FILE = 'mysql-bin.000002', MASTER_LOG_POS = 136484; Query OK, 0 rows affected (0.01 sec) master [localhost] {msandbox} (test) > START SLAVE; Query OK, 0 rows affected (0.00 sec)