Mysql日志删除后导致Mysqld启动不了

周末跑了几天数据导致空间满了,我就把binlong文件删了导致报错

2020-09-07T01:37:17.261975Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.16) starting as process 1
2020-09-07T01:37:17.617175Z 0 [ERROR] [MY-010958] [Server] I/O error reading the header from the binary log.
2020-09-07T01:37:17.617190Z 0 [ERROR] [MY-010041] [Server] Can't init tc log
2020-09-07T01:37:17.617455Z 0 [ERROR] [MY-010119] [Server] Aborting

解决办法:
删除的mysql-bin.index,ib_logfile0,ib_logfile1后,再次重启mysql服务

你可能感兴趣的:(SQL,mysql)