1062 error reported after reboot from library

Source: Internet
Author: User

The master-slave synchronization is described as follows:

The MySQL instance from the library was restarted because of a host failure. After rebooting, the following error is reported from the slave status of the library:

last_sql_errno:1062
Last_sql_error:could not execute Write_rows event on table Qrcode.t_qcd_item; Duplicate entry ' 2861768 ' for key ' PRIMARY ', error_code:1062; Handler error Ha_err_found_dupp_key; The event ' s master Log mysql-bin.000005, End_log_pos 6000458

The reasons are:

The statement was executed from the library, but is not recorded in the relay log. Cause reboot and re-sync data, Report 1062 primary key conflict

How to resolve:

Skip the error and resynchronize.

1062 error reported after reboot from library

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.