报错信息:
Replicate_Wild_Ignore_Table:
Last_Errno: 1032
Last_Error: Could not execute Delete_rows event on table product_same.authtoken_token; Can‘t find record in ‘authtoken_token‘, Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event‘s master log mysql-bin.001710, end_log_pos 15201673
Skip_Counter: 0
Exec_Master_Log_Pos: 15201386
Relay_Log_Space: 6413744227
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 Delete_rows event on table product_same.authtoken_token; Can‘t find record in ‘authtoken_token‘, Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event‘s master log mysql-bin.001710, end_log_pos 15201673
Replicate_Ignore_Server_Ids:
Master_Server_Id: 3305390547
Master_UUID: 19499a2d-31bf-11e4-8c95-ac853d9f52b2
Master_Info_File: /home/mysql/data3024/mysql/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: 141127 10:13:06
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set: 17103fb0-31bf-11e4-8c94-ac853d9f54d0:1657108805-1657120882,
19499a2d-31bf-11e4-8c95-ac853d9f52b2:11-11598345
Executed_Gtid_Set: 17103fb0-31bf-11e4-8c94-ac853d9f54d0:1-1657120882,
19499a2d-31bf-11e4-8c95-ac853d9f52b2:1-22046,
5030a771-3345-11e4-9685-ac853d9f53ca:1-303
Auto_Position: 1
1 row in set (0.00 sec)
这个实例是个slave,指向的主master,主master发生切换,切换到备master;
17103fb0-31bf-11e4-8c94-ac853d9f54d0:原主库的uuid
19499a2d-31bf-11e4-8c95-ac853d9f52b2:新主库的uuid
5030a771-3345-11e4-9685-ac853d9f53ca:slave的uuid
跳过这个事物:
STOP SLAVE;
SET GTID_NEXT= “19499a2d-31bf-11e4-8c95-ac853d9f52b2:22047”;
BEGIN; COMMIT;
SET GTID_NEXT ="automatic";
START SLAVE;