亲测有效,解决Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) ";_hjf161105的博客-CSDN博客
![ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) - GitLab CI/CD - GitLab Forum ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) - GitLab CI/CD - GitLab Forum](https://global.discourse-cdn.com/gitlab/optimized/3X/a/c/ac0ea58ffbfd15ac159ef1bb02198c7b60e83982_2_690x373.png)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) - GitLab CI/CD - GitLab Forum
![GitHub - asaldivar/cluster-socket.io-mysql-nginx-redis: Live stream starter kit that uses socket.io, redis as a pub/sub and cache, mysql, and nginx as a load-balancing proxy. GitHub - asaldivar/cluster-socket.io-mysql-nginx-redis: Live stream starter kit that uses socket.io, redis as a pub/sub and cache, mysql, and nginx as a load-balancing proxy.](https://user-images.githubusercontent.com/6180653/72672083-e3ae5500-3a4c-11ea-9a26-777bee22c1ec.png)
GitHub - asaldivar/cluster-socket.io-mysql-nginx-redis: Live stream starter kit that uses socket.io, redis as a pub/sub and cache, mysql, and nginx as a load-balancing proxy.
![Solución a error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' | NKSistemas Solución a error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' | NKSistemas](https://i0.wp.com/nksistemas.com/wp-content/uploads/2020/10/error2002HY000.jpg?fit=895%2C588&ssl=1&w=640)
Solución a error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' | NKSistemas
![ERROR 2002 (HY000): Can't connect to local MySQL srever through socket '/var/lib/mysql/mysql.sock' - YouTube ERROR 2002 (HY000): Can't connect to local MySQL srever through socket '/var/lib/mysql/mysql.sock' - YouTube](https://i.ytimg.com/vi/saQP9NjGQBI/hqdefault.jpg)