MySQL error: Can't open file: (errno: 24) on vtiger CRM


ค่าเริ่มต้นของ open-files-limit บน MySQL จะตั้งไว้ที่ 1024  จึงทำให้เกิด error MySQL error: Can't open file: './homeuser/vtiger_loginhistory.frm' (errno: 24)

#service mysqld restart ก็หายใช้งานได้ปกติแต่จะกลับมาเป็นอีก
ถ้าจะเอาถาวรก็เพิ่ม open_files_limit = เท่าไหร่กำหนดเอง    ลงในไฟล์ /etc/my.cnf


#vi etc/my.cnf

[mysqld]
open_files_limit = 10000

#service mysqld restart
ตรวจสอบว่าอับเดทหรือยัง

login mysql with root

mysql> show variables like 'open_files%';
+------------------+-------+
| Variable_name    | Value |
+------------------+-------+
| open_files_limit | 10000 |
+------------------+-------+
1 row in set (0.00 sec)

ปล. MySQL version mysql-5.1.73-3.el6_5.x86_64  ,CentOS 6.5
อ่านเพิ่มเติม ได้ที่  and http://duntuk.com/how-raise-ulimit-open-files-and-mysql-openfileslimit

Comments