Home  >  Article  >  Database  >  解决mysql ERROR 1017:Can''t find file: ''/xxx.frm'' 错

解决mysql ERROR 1017:Can''t find file: ''/xxx.frm'' 错

WBOY
WBOYOriginal
2016-06-07 18:03:581431browse

如果重启服务器前没有关闭mysql,MySql的MyiSAM表很有可能会出现 ERROR #1017 :Can't find file: '/xxx.frm' 的错误

出现这个问题的原因不是'/xxx.frm'这个文件不见了,而是这些文件的权限(应该要是mysql)不知道为什么变成了root。

解决方法:cd到xxx.frm文件所在目录下,执行一下命令:chown mysql.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