1、Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 解决办法:【mysql报错】ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘_小慌慌的博客-CSDN博客 2、navicat 无法链接服务器,原因:服务器未提供端口,外网无法访问。