这段时间有几台服务器上经常出现phpmyadmin登录进去没有库的情况,一开始以为是被埋了木马删库,或者被黑了,但是使用命令行登录mysql并运行show databases时,发现其提示Can't read dir of '.' (errno: 24 - Too many open files)。
解决方案:

echo '
LimitNOFILE=102400'>>/etc/systemd/system/mysql.service
systemctl daemon-reload
systemctl restart mysqld

参考链接:https://blog.csdn.net/weixin_36343850/article/details/86293700

本文作者:小欢

本文链接:mysql提示:Can't read dir of '.' (errno: 24 - Too many open files) - https://www.xh-ws.com/archives/mysql_too_many_open_files.html

版权声明:如无特别声明,本文即为原创文章,仅代表个人观点,版权归 小欢博客 所有,遵循知识共享署名-相同方式共享 4.0 国际许可协议。转载请注明出处!