Loading

强制重启服务器后,mysql启动报错:Bind on unix socket: Permission denied

报错信息

2021-09-13 09:24:03 1788 [Note] Server socket created on IP: '0.0.0.0'.
2021-09-13 09:24:03 1788 [ERROR] Can't start server : Bind on unix socket: Permission denied
2021-09-13 09:24:03 1788 [ERROR] Do you already have another mysqld server running on socket: /var/lib/mysql/mysql.sock ?
2021-09-13 09:24:03 1788 [ERROR] Aborting

最初看到报错,删除了/var/lib/mysql/mysql.sock,然后查找占用3306端口的进程也找不到

后面把焦点放到了 Permision denied,然后更改了一下权限

chmod -R 777 /var/lib/mysql

就可以正常启动了

posted @ 2021-09-13 09:35  BigBender  阅读(313)  评论(0编辑  收藏  举报