[root@BLAVDP021 ~]# perror 1032 MySQL error code 1032 (ER_KEY_NOT_FOUND): Can't find record in '%-.192s' 簡單說,就是在從庫上找不到相應(yīng)的記錄,同時在show slave status/G;中有相關(guān)輸出,我們看一下:
Last_Errno: 1032 Last_Error: Could not execute Update_rows event on table lenovoweixin.wx_app_order_code; Can't find record in 'wx_app_order_code', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.000129, end_log_pos 4448749 從上面可以看出,在slave執(zhí)行從master復(fù)制過來的update語句因為slave找不到數(shù)據(jù),導(dǎo)致SQL線程報錯,停止應(yīng)用。也就是說master和slave上數(shù)據(jù)不一致導(dǎo)致的該錯誤。