Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld. sock' (2) · Issue #9976 · microsoft/WSL · GitHub
![How to solve ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' How to solve ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'](https://1.bp.blogspot.com/-nIUTdCAcWCo/Uz_C9p-KEWI/AAAAAAAAAHE/XhSNxDemgqI/s600-w640-h480-e365-ci-rw-c/MySQL.jpg)
How to solve ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
![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 - Problem:: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) - Stack Overflow ubuntu - Problem:: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) - Stack Overflow](https://i.stack.imgur.com/IKxCW.png)