解决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