![Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld. sock' (2) Ubuntu - Tuts Make Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld. sock' (2) Ubuntu - Tuts Make](https://www.tutsmake.com/wp-content/uploads/2023/04/ERROR-2002-HY000_-Cant-connect-to-local-MySQL-server-through-socket-_var_run_mysqld_mysqld.sock-2-1024x499.jpg)
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld. sock' (2) Ubuntu - Tuts Make
![Can't Connect To Local Mysql Server Through Socket '/Var/Run/Mysqld/mysqld. sock' (2) - Position Is Everything Can't Connect To Local Mysql Server Through Socket '/Var/Run/Mysqld/mysqld. sock' (2) - Position Is Everything](https://ei7sbsqceej.exactdn.com/wp-content/uploads/2023/07/Fixes-of-Can_t-Connect-To-Local-Mysql-Server-Through-Socket-__Var_Run_Mysqld_mysqld.sock_.jpg?strip=all&lossy=1&w=2560&ssl=1)
Can't Connect To Local Mysql Server Through Socket '/Var/Run/Mysqld/mysqld. sock' (2) - Position Is Everything
![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") - 中级菜鸟- 博客园
![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
![php - mysqli non-standard socket location configuration for php5-fpm on ubuntu 14.04LTS - Server Fault php - mysqli non-standard socket location configuration for php5-fpm on ubuntu 14.04LTS - Server Fault](https://i.stack.imgur.com/9uPnt.png)