Error Sanity check failed during mysqlbinlog backup

Source: Internet
Author: User

Error Sanity check failed during mysqlbinlog backup

When I reviewed MySQL binary logs today, I found some problems:
Mysqlbinlog-uroot-proot/usr/local/mysql/data/node1.000004 -- start-datetime = "13:30:00" -- stop-datetime = "13:45:00"> a. SQL

ERROR: Error in Log_event: read_log_event (): 'sanity check failed ', data_len: 171, event_type: 30
ERROR: cocould not read entry at offset 1009: Error in log format or read error.

I checked the instructions on the Internet, that is, the version of mysqlbinlog under the current environment variable is different from the current MySQL version. You only need to add the Global Path. [Note: I have installed MariaDB10.0.12 on this virtual machine before and changed it to MySQL5.6]
As follows:

/Usr/loca/mysql/bin/mysqlbinlog-uroot-proot/usr/local/mysql/data/node1.000004 -- start-datetime = "13:30:00" -- stop-datetime = "13:45:00 ">. SQL

In this way, the backup can be correctly executed.

Mysqlbinlog parsing binlog garbled issue decryption

Use mysqlbinlog to extract binary logs

Use mysqlbinlog to restore data based on location or time point

For information about binlog, see MySQL Binary Log)

This article permanently updates the link address:

Related Article

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.