![Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. sock' (2) - Stack Overflow Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. sock' (2) - Stack Overflow](https://i.stack.imgur.com/5KFc1.png)
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. sock' (2) - Stack Overflow
![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
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld. sock'" · Issue #6842 · travis-ci/travis-ci · GitHub
![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") - 中级菜鸟- 博客园
![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)