Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' 方法:重启MySQL 在命令行执行: /etc/init.d/mysql start