ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) 我的场景出现这个问题是因为mysql没有启动运行 service mysql restart