Home  >  Article  >  Database  >  MYSQL错误:Can’t open file: ‘×××.MYI’ (errno: 145)[组_MySQL

MYSQL错误:Can’t open file: ‘×××.MYI’ (errno: 145)[组_MySQL

WBOY
WBOYOriginal
2016-06-01 13:56:531157browse

  这个错误是典型的mysql表受损造成的,解决的办法就是修复表,这个问题也是mysql经常容易出现的,mysql表和索引损坏的几率很大,但是修复也很方便,减少此类问题发生的办法就是尽量减少服务器无故断电,关闭服务器时,最后先手动关闭mysql数据库。
  
  下面看看这个问题:
  
  Can’topenfile:‘×××.MYI’(errno:145),这个错误一般就是你的数据库表文件损坏造成的,造成的原因大概是你把数据库文件挪来挪去的结果,当然不排除其他原因啊。
  
  具体数据库出现错误的提示代码是:
  
  InvalidSQL:……
  
  MySQL错误!:1016(Can’topenfile:‘×××.MYI’(errno:145))
  
  解决这个问题有多种方案,如果你的数据库可以远程链接或者你可以连接到你的远程服务器桌面,并且你的服务器系统刚好是Windows的,那么你可以:
  
  运行->cmd
  
  然后:mysql

Statement:
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