当前位置:Gxlcms > 数据库问题 > mysqlbinlog备份时候报错Sanity check failed

mysqlbinlog备份时候报错Sanity check failed

时间:2021-07-01 10:21:17 帮助过:14人阅读

ERROR: Could not read entry at offset 1009: Error in log format or read error.


查了下网上的说明,说是当前环境变量下的mysqlbinlog的版本和当前MySQL的版本不一样导致的。只要加全局路径即可。【说明:我以前在这台虚拟机上安装过MariaDB10.0.12,后来换成了MySQL5.6】

如下:

/usr/loca/mysql/bin/mysqlbinlog -uroot -proot /usr/local/mysql/data/node1.000004 --start-datetime="2016-05-04 13:30:00" --stop-datetime="2016-05-04 13:45:00" > a.sql

这样就能正确的执行备份了。

mysqlbinlog备份时候报错Sanity check failed

标签:mysqlbinlog备份时候报错sanity check failed

人气教程排行