当前位置:Gxlcms > mysql > mysql的1067错误

mysql的1067错误

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

由于使用时间比较长积累了很多的日志文件(\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?

  1. 130416 9:59:23 InnoDB: Started; log sequence number 0 43655
  2. MySQL: File '.\mysql-bin.000278' not found (Errcode: 2)
  3. 130416 9:59:23 [ERROR] Failed to open log (file '.\mysql-bin.000278', errno 2)
  4. 130416 9:59:23 [ERROR] Could not open log file
  5. 130416 9:59:23 [ERROR] Can't init tc log
  6. 130416 9:59:23 [ERROR] Aborting
  7. 130416 9:59:23 InnoDB: Starting shutdown...
  8. 130416 9:59:24 InnoDB: Shutdown completed; log sequence number 0 43655
  9. 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了!

人气教程排行