ERROR 2002 (HY000): Can't connect to local MySQL

发布时间:2019-09-17编辑:脚本学堂
[mysql]ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[mysql]ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

错误原因:没启动mysql的守护进程
解决办法:执行service mysqld start