(Errcode: 24 – Too many open files)解决办法

本文最后更新于 2018年8月11日。

进入sql命令行看文件夹打开情况:

mysql> show global status like 'open_%';
Variable_name Value
Open_files 4871
Open_streams 0
Open_table_definitions 171
Open_tables 743
Opened_files 9853
Opened_table_definitions 243
Opened_tables 929

7 rows in set (0.01 sec)

mysql> show global variables like 'open_%';
Variable_name Value
open_files_limit 5000

1 row in set (0.00 sec)

mysql> show variables like 'table_open_cache';
Variable_name Value
table_open_cache 2000

1 row in set (0.01 sec)
cache已经达到2000
输入以下命令后不再提示该错误

set global table_open_cache=100;

Note:系统环境:centos7

无特殊说明,本站文章均为原创,转载请注明出处。
本文首发于微信公众号“我的探索”ID:MyExploration