Mysql:mysqlbinlog read binary file Error read_log_event ()

Source: Internet
Author: User

First, the problem description
MySQL v 5.0.91
[Email protected] bin]#./mysqlbinlog/tmp/mysql-bin.000015
/ !40019 SET @ @session. max_insert_delayed_threads=0/;
/ !50003 SET @[email protected] @COMPLETION_TYPE, completion_type=0/;
DELIMITER/ !/;
#at 4
#180227 10:31:55 Server ID 1 end_log_pos 98 start:binlog v 4, Server v 5.0.91-log created 180227 10:31:55
Error:error in Log_event::read_log_event (): ' Found invalid event in binary Log ', data_len:69, Event_type:2
Could not read entry on offset 98:error in log format or read Error
DELIMITER;
#End of log file
ROLLBACK/ added by Mysqlbinlog/;
/ !50003 SET [email protected]_completion_type/;

Second, the solution
Remove the default character set
#vim/etc/my.cnf
[Client]
#default-character-set = UTF8
#character-set-server = UTF8
#password = Your_password
Port = 3306
Socket =/var/mysql/mysql.sock
......
[Mysqld]
Datadir=/var/lib/mysql
#default-character-set = UTF8
#character-set-server = UTF8
......
[MySQL]
No-auto-rehash
#default-character-set = UTF8

Mysql:mysqlbinlog read binary file Error read_log_event ()

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.