报错信息 ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) 解决办法 /etc/init.d/mysqld restart 输入以上命令重启即可