mysql error : ERROR 1018 (HY000): Can't read dir of '.' (errno: 13)

前端 未结 6 1713
予麋鹿
予麋鹿 2020-12-13 08:36

when i try to view the databases in mysql i get this error:

ERROR 1018 (HY000): Can\'t read dir of \'.\' (errno: 13)

And that stops my app

6条回答
  •  被撕碎了的回忆
    2020-12-13 09:23

    On CentOS/RedHat, you should do the same thing on a different path:

    chown -R mysql:mysql /data/mysql/
    chmod -R 755 /data/mysql/
    

提交回复
热议问题