ERROR: Could not read entry at offset 946675767: Error in log format or read error.
Posted 雅冰石
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR: Could not read entry at offset 946675767: Error in log format or read error.相关的知识,希望对你有一定的参考价值。
一 问题描述
查看binlog里内容,发现无法正常查看:
mysqlbinlog --no-defaults -v master-bin.000543 > baidd_543.log
报错:
ERROR: Error in Log_event::read_log_event(): 'Event truncated', data_len: 1413827653, event_type: 109
ERROR: Could not read entry at offset 946675767: Error in log format or read error.
二 解决办法
添加-f参数,强制打开
mysqlbinlog --no-defaults -v -f master-bin.000543 > baidd_543.log
虽然有报错:
mysqlbinlog: /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.18/sql/log_event.cc:10883: Rows_log_event::Rows_log_event(const char*, uint, const Format_description_log_event*): Assertion `var_header_len >= 2' failed.
Aborted
但是能查看到baidd_543.log文件包含了完整内容
以上是关于ERROR: Could not read entry at offset 946675767: Error in log format or read error.的主要内容,如果未能解决你的问题,请参考以下文章
ERROR: Could not read entry at offset 946675767: Error in log format or read error.
Failed with error: Could not read from remote repository.
Push failed: Failed with error: fatal: Could not read from remote repository
Error: could not find java.dll如何解决