当前位置:Gxlcms > 数据库问题 > Centos 下启动mysql 报错: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)解决方法

Centos 下启动mysql 报错: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)解决方法

时间:2021-07-01 10:21:17 帮助过:11人阅读

/lib/mysql #备份mysql.sock sudo mv mysql.sock mysql.sock.bak

再次登录

mysql -uroot -proot

成功!!

参考链接:https://www.cnblogs.com/invban/p/5824796.html

Centos 下启动mysql 报错: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)解决方法

标签:方法   备份   www   emctl   color   connect   style   start   成功   

人气教程排行