Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

方法:重启MySQL

在命令行执行: /etc/init.d/mysql start

原文地址:https://www.cnblogs.com/heiao10duan/p/11434791.html