作/译者:叶金荣(Email:
),来源:http://imysql.cn,转载请注明作/译者和出处,并且不能用于商业用途,违者必究。
![email.gif](https://i-blog.csdnimg.cn/blog_migrate/c3f7cf7250583b5dab147ec66529b7bd.gif)
故障现象:
1:使用mysqldump命令dump出整个数据库:
1:使用mysqldump命令dump出整个数据库:
mysqldump: Got error: 1105: File './db/data_20070901.MYD' not found (Errcode: 24) when using LOCK TABLES
2:查看/data/db下面文件没有缺少,使用mysql客户端连接desc以及select * from这个表都没有问题。而且如果使用dump命令直接dump这个表也不会出错
通过 perror 24 得知,错误信息为:
[root@localhost ~]#perror 24 OS error code 24: Too many open files
因此,修改一下 /etc/my.cnf ,设定open_files_limit 为较大值,如 4096,重启mysqld生效。
本文出自 “MySQL中文网”博客 http://www.imysql.cn/
本文出自 “MySQL中文网”博客 http://www.imysql.cn/