mysql ERROR: Can't read dir of '.' (errno: 24)
    文章作者:恒爱网络 阅读次数:7132 发布时间:2015-3-30

    网上查找 (errno: 24) 是由于进程打开文件数过多引起的。
     
    可以重启启动mysql
     
    /etc/init.d/mysqld start

    ps:
     
    查看mysql进程打开的文件数
     
    lsof -u mysql


    如果提示 -bash: lsof: command not found 


    yum -y install lsof 安装后即可正常使用。


    解决方式:编辑MYsql配置文件my.cnf

    增加:

    open-files-limit=2048
    table_cache
    =512