mysql的1067错误
程序员文章站
2022-05-25 14:58:21
...
由于使用时间比较长积累了很多的日志文件(\data目录下),所以删除之! mysql-bin.000001 ... ... mysql-bin.000278 原来删除都留最后一个编号的日志,这次太过彻底~~都删了! 执行 net start mysql : 出现了mysql 1067错误! 查看,主机名.err文件(lenovo
由于使用时间比较长积累了很多的日志文件(\data目录下),所以删除之!mysql-bin.000001
... ...
mysql-bin.000278
原来删除都留最后一个编号的日志,这次太过彻底~~都删了!
执行net start mysql:
出现了mysql 1067错误!
查看,主机名.err文件(lenovo-7c8f808d.err):
[plain] view plaincopyprint?
- 130416 9:59:23 InnoDB: Started; log sequence number 0 43655
- MySQL: File '.\mysql-bin.000278' not found (Errcode: 2)
- 130416 9:59:23 [ERROR] Failed to open log (file '.\mysql-bin.000278', errno 2)
- 130416 9:59:23 [ERROR] Could not open log file
- 130416 9:59:23 [ERROR] Can't init tc log
- 130416 9:59:23 [ERROR] Aborting
- 130416 9:59:23 InnoDB: Starting shutdown...
- 130416 9:59:24 InnoDB: Shutdown completed; log sequence number 0 43655
- 130416 9:59:24 [Note] MySQL: Shutdown complete
130416 9:59:23 InnoDB: Started; log sequence number 0 43655 MySQL: File '.\mysql-bin.000278' not found (Errcode: 2) 130416 9:59:23 [ERROR] Failed to open log (file '.\mysql-bin.000278', errno 2) 130416 9:59:23 [ERROR] Could not open log file 130416 9:59:23 [ERROR] Can't init tc log 130416 9:59:23 [ERROR] Aborting 130416 9:59:23 InnoDB: Starting shutdown... 130416 9:59:24 InnoDB: Shutdown completed; log sequence number 0 43655 130416 9:59:24 [Note] MySQL: Shutdown complete
告诉我们找不到mysql-bin.000278文件!
既然找不到,我们新弄一个日志文件:
打开my.ini文件
更改红框中的文字为:mysql-b
保存my.ini文件。
重新启动mysql服务:
正常启动mysql了!
上一篇: 关于mysql的多表连接问题