MYSQLOutofresourceswhenopeningfileamp; amp; # x27 ;. xxx. MYDamp; amp; # x27; (Errcode: 24) Out of resources when opening file '. /xxx. myd' (Errcode: 24) error because the number of opened files exceeds my. cnf -- open-files-limit. The open-files-limit option cannot be directly modified on the mysql command line. it must be set in my. cnf. The maximum value is 65536.
Restart mysqld,
Mysql> show variables like 'open % ';
+ ------------------ + ------- +
| Variable_name | Value |
+ ------------------ + ------- + |
Open_files_limit | 1024 |
+ ------------------ + ------- +
If this variable is not changed, it is likely that there is a problem with the limits value set by the number of files opened on the server (you can view it using ulimit-n ). If 1024 is found, after my. cnf is changed to 65536, the value is also changed to 65536. You need to log on to the server again and restart the database service. This value takes the minimum value set by the database and server.
Mysql> show variables like 'open % ';
+ ------------------ + ------- +
| Variable_name | Value |
+ ------------------ + ------- +
| Open_files_limit | 65536 |
+ ------------------ + ------- +