mysql Can't open file: 'xx.frm' (errno: 24) 报错
来源:互联网 发布:x431解码器软件下载 编辑:程序博客网 时间:2024/05/17 22:32
How to Fix an (errno: 24) in MySQL
When creating a large number of partitions or tables, MySQL may mysteriously stop working and you find this type of error on/var/lib/mysql/$HOSTNAME.err
:
[ERROR] /usr/sbin/mysqld: Can't open file: './database/table.frm' (errno: 24)
errno: 24
simply means that too many files are open for the given process. There is a read-only mysql variable calledopen_files_limit
that will show how many open files are allowed by the mysqld
:
SHOW VARIABLES LIKE 'open%'
A lot systems set this to something very low, like 1024. Unfortunately, the following will NOT work:
SET open_files_limit=100000
MySQL will respond with:
ERROR 1238 (HY000): Variable 'open_files_limit' is a read only variable
However, it is possible to make a change to /etc/my.cnf
. This file may not exist, if not, just create it. Be sure it has the following contents:
[mysqld]open_files_limit = 100000
Then, be sure to restart mysql:
sudo /etc/init.d/mysql restart
Now, SHOW VARIABLES LIKE 'open%'
should show 100000. The number you use may be different.
- mysql Can't open file: 'xx.frm' (errno: 24) 报错
- Myisam分区表遭遇Can't open file: 'XXXX.frm' (errno: 24)
- mysqldump: Got error: 1016: Can't open file: '***.frm' (errno: 24) when usin
- MySQL创建外键时错误:MySQL Error Number 1005 Can’t create table ‘XX.frm’ (errno: 150)
- MySQL Error Number 1005 Can’t create table ‘XX.frm’ (errno: 150)
- MySQL Error Number 1005 Can’t create table ‘XX.frm’ (errno: 150)
- 直接文件夹形式移库后,php读取数据库时:Can\'t open file: \'.\\common_syscache.frm\' (errno: 13)
- 启动mysql报错Can't find file: './mysql/plugin.frm'
- Can't find file: './mysql/plugin.frm' (errno: 13)[mysql数据目录迁移错位]错误解决
- Mysql ERROR 1017 (HY000): Can't find file: './db/table.frm' (errno: 13)
- /usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
- Can’t find file mysql/host.frm
- Can't find file: './mysql/plugin.frm'
- Can't find file: './mysql/plugin.frm' (errno: 13)[mysql数据目录迁移错位]错误解决
- mysql Can't find file: './mysql/host.frm'
- MYSQL ERRNO:#1005 - Can't create table './my_news_release_system/user.frm' (errno: 150)原因总结
- vi E212:Can't open file for writing 报错
- vim E212:Can't open file for writing 报错
- IOS中AppDelegate详解
- 如何查看linux命令的源代码
- C++ 最新的所有头文件,要经常看呀
- 安卓开发api网址
- Android 5.0 将延期发布 无缘谷歌 I/O 2013大会
- mysql Can't open file: 'xx.frm' (errno: 24) 报错
- 利用AbstractRoutingDataSource实现动态数据源切换
- 那些优秀的开源系统恢复软件
- android录像功能
- 新手入门使用STM32函数库之外部中断
- Windows Blue请愿清单:十五项必须改进的特性
- 完全卸载oracle11g
- 使用jQuery弹出层,信息框居中
- linux 安装lynx