Out of resources when opening file ‘./xxx.MYD’ (Errcode: 24)解决方法

mysql版本MariaDB 10.0.29

查看版本 select version();

[root@db1 system]# cat /usr/lib/systemd/system/mariadb.service | grep exam -A 5
# For example, if you want to increase mariadb's open-files-limit to 10000,
# you need to increase systemd's LimitNOFILE setting, so create a file named
# "/etc/systemd/system/mariadb.service.d/limits.conf" containing:
#       [Service]
#       LimitNOFILE=10000

重启mysql 提示

mariadb.service changed on disk. Run 'systemctl daemon-reload' to reload units

运行 systemctl daemon-reload

重启mysql

查看mysql>show global variables like '%open%';

完美搞定

HTTPROOT | 自学PHP | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 石头哥 |微信小程序 |木讯 |备案
Copyright © 1998 - 2016 HTTPROOT.COM. All Rights Reserved httproot.com 版权所有