MYSQLOutofresourceswhenopeningfile & amp; # x27;./xxx_MySQL

Source: Internet
Author: User
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 |

+ ------------------ + ------- +

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.