Home > Database > Mysql Tutorial > 添加从节点是出现ERROR 1017 (HY000): Can’t find file

添加从节点是出现ERROR 1017 (HY000): Can’t find file

WBOY
Release: 2016-06-07 16:41:51
Original
2029 people have browsed it

错误提示如下: ERROR 1017 (HY000): Cant find file?./xxxxx/xxxx.frm (errno: 13) on query. Default database: xxxx. Query: insert into xxxx(UserID,CreateTime 开始反应:检查下文件是否存在;文件存在,这个是否在检查了用户的为644,再看了下用户和

错误提示如下:

ERROR 1017 (HY000): Can’t find file?’./xxxxx/xxxx.frm’ (errno: 13)’ on query. Default database: ‘xxxx’. Query: ‘insert into xxxx(UserID,CreateTime

开始反应:检查下文件是否存在;文件存在,这个是否在检查了用户的为644,再看了下用户和用户组设置得有问题。

我的备份文件是通过由冷备份拷贝过来的,复制的时候用户为root,而启动mysql的用户为mysql

找到了问题所在后,马上通过chown ?-R mysq:mysql liufofu把文件的权限设置后,然后slave重启下,果然是正常了。

记得之前也遇到过表为只读,其实与这个问题是相似的。可以参考下“

MySQL Table is read only的具体解决方案

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