![macos - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock' (2) - XAMPP Mac OSX - Stack Overflow macos - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock' (2) - XAMPP Mac OSX - Stack Overflow](https://i.stack.imgur.com/ObcSu.png)
macos - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock' (2) - XAMPP Mac OSX - Stack Overflow
![mariadb报:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111 "Connection refused") - 中级菜鸟- 博客园 mariadb报:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111 "Connection refused") - 中级菜鸟- 博客园](https://img2018.cnblogs.com/blog/433425/201905/433425-20190527172936047-522168672.png)
mariadb报:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111 "Connection refused") - 中级菜鸟- 博客园
![ubuntu - MySql Manual instalation - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) - Stack Overflow ubuntu - MySql Manual instalation - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) - Stack Overflow](https://i.stack.imgur.com/q0M1z.png)