Home > Database > Mysql Tutorial > mysql的1067错误

mysql的1067错误

WBOY
Release: 2016-06-07 15:34:26
Original
1584 people have browsed it

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

      出现了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.   
  8. 130416  9:59:23  InnoDB: Starting shutdown...  
  9. 130416  9:59:24  InnoDB: Shutdown completed; log sequence number 0 43655  
  10. 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
Copy after login

    告诉我们找不到mysql-bin.000278文件!

    既然找不到,我们新弄一个日志文件:

    打开my.ini文件

    mysql的1067错误

   更改红框中的文字为:mysql-b

   保存my.ini文件。


   重新启动mysql服务:

mysql的1067错误


    正常启动mysql了!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template