服务器重启后,MySQL重启失败:[ERROR] Binlog has bad magic number; It‘s not a binary log file that can be used b

现象:

MySQL服务器强制重启后,发现MySQL自启动失败

分析解决:

查看MySQL错误日志:

2021-01-04 11:35:53 139718215592128 [ERROR] Binlog has bad magic number;  It's not a binary log file that can be used by this version of MySQL
2021-01-04 11:35:53 139718215592128 [ERROR] Can't init tc log
2021-01-04 11:35:53 139718215592128 [ERROR] Aborting

解决:
根据MySQL关闭的时间查看最新的数据文件是哪个,然后将它删除即可
在这里插入图片描述
问题解决,启动成功!

你可能感兴趣的:(踩坑日志,mysql,linux,数据库)