环境: ubuntu 12.04 mysql 5.5 抛出错误: Out of resources when opening file './xxx/Users#P#pid_78.MYD' (Errcode: 24) 查了一下,这个是跟打开文件数量有关,设置大点就好。 2个要点: 1、操作系统针对mysql用户的open files 数量增大 2、my.cnf 文件
环境:
ubuntu 12.04
mysql 5.5
抛出错误:
Out of resources when opening file './xxx/Users#P#pid_78.MYD' (Errcode: 24)
查了一下,这个是跟打开文件数量有关,设置大点就好。
2个要点:
1、操作系统针对mysql用户的open files 数量增大
2、my.cnf 文件里配置 open-files-limit
操作过程:
vim /etc/security/limits.conf
加入内容:
mysql soft nofile 102400 mysql hard nofile 102400
vim /etc/mysql/my.cnf
在[mysqld]下加入内容:
open-files-limit=102400
淡定的reboot就好。
原文地址:mysql报错Out of resources when opening file './xxx#P, 感谢原作者分享。
Copyright © 2019- cepb.cn 版权所有 湘ICP备2022005869号-7
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务