>show slave status\G;
************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: XXXXXXXX
Master_User: XX
Master_Port: XXX
Connect_Retry: 60
Master_Log_File: mysql-bin.XXXXX
Read_Master_Log_Pos: 542474224
Relay_Log_File: relay-bin.000019
Relay_Log_Pos: 161532472
Relay_Master_Log_File: mysql-bin.XXXX
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: 1032
Last_Error: Could not execute Update_rows event on table XXXX.XXXXX; Can't find record in 'XXXXXXXX', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.XXXXX, end_log_pos 161532689
Skip_Counter: 0
Exec_Master_Log_Pos: 161532259
Relay_Log_Space: 544480360
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: 1032
Last_SQL_Error: Could not execute Update_rows event on table XXXXX.XXXX; Can't find record in 'XXXXXXX', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.000058, end_log_pos 161532689
Replicate_Ignore_Server_Ids:
Master_Server_Id: 1
Master_UUID: XXXXXXX
Master_Info_File: /XXX/XXXX/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: 171201 11:33:19
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position: 0
Replicate_Rewrite_DB:
Channel_Name:
1 row in set (0.00 sec)
>stop slave;
>start slave;
>CHANGE MASTER TO MASTER_HOST='XXXXXXX',MASTER_USER='XXXXX', MASTER_PASSWORD='XXXXXX',MASTER_LOG_FILE='mysql-bin.XXXX',MASTER_LOG_POS=161532689;