解决Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) ";

解决方案:

https://blog.csdn.net/HeatDeath/article/details/79065872

https://blog.csdn.net/hjf161105/article/details/78850658

原文地址:https://www.cnblogs.com/hgj123/p/9579031.html