![Fixing can't connect to local MySQL server through socket error in Ubuntu 20.04 while installing MySQL 8 - Init Pals Fixing can't connect to local MySQL server through socket error in Ubuntu 20.04 while installing MySQL 8 - Init Pals](https://www.initpals.com/wp-content/uploads/2022/01/mysql_sock_location.jpg)
Fixing can't connect to local MySQL server through socket error in Ubuntu 20.04 while installing MySQL 8 - Init Pals
![ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'_wx60bc17759a517的技术博客_51CTO博客 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'_wx60bc17759a517的技术博客_51CTO博客](https://s2.51cto.com/images/blog/202302/10101114_63e5a7c30015d70829.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_750)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'_wx60bc17759a517的技术博客_51CTO博客
![I have problem in my site with Mysql , Python. - aaPanel - Hosting control panel. One-click LAMP/LEMP. I have problem in my site with Mysql , Python. - aaPanel - Hosting control panel. One-click LAMP/LEMP.](https://forum.aapanel.com/assets/files/2022-09-27/1664293984-73572-image.png)
I have problem in my site with Mysql , Python. - aaPanel - Hosting control panel. One-click LAMP/LEMP.
![macos - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' - Stack Overflow macos - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' - Stack Overflow](https://i.stack.imgur.com/bt8gp.png)
macos - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' - Stack Overflow
![MySQL] (M1 macOS) Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61) 해결 MySQL] (M1 macOS) Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61) 해결](https://velog.velcdn.com/images/jejeje/post/e1f5b9b1-c8e8-4c1f-a0a2-a7aa3c428644/image.png)
MySQL] (M1 macOS) Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61) 해결
![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_1024x554.png)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) - GitLab CI/CD - GitLab Forum
![Percona XtraDB Cluster - Lock wait timeout exceeded - Percona XtraDB Cluster 5.x - Percona Community Forum Percona XtraDB Cluster - Lock wait timeout exceeded - Percona XtraDB Cluster 5.x - Percona Community Forum](https://global.discourse-cdn.com/business5/uploads/percona1/original/2X/4/4194b62dc3e45d9b7ca2c5029376b8a1b905d696.png)
Percona XtraDB Cluster - Lock wait timeout exceeded - Percona XtraDB Cluster 5.x - Percona Community Forum
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) · Issue #936 · docker-library/mysql · GitHub
![Docker on Ubuntu 22.10: running mysql:8.0.34-debian with custom config, socket, database and log files reside on host machine. - DEV Community Docker on Ubuntu 22.10: running mysql:8.0.34-debian with custom config, socket, database and log files reside on host machine. - DEV Community](https://res.cloudinary.com/practicaldev/image/fetch/s--ypV95Wqq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://behainguyen.files.wordpress.com/2023/09/084-01-1.png)