![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/-s_U-RHquAIw/UzRO1yNzmAI/AAAAAAAAAGI/xI-c1T6CWXg/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'
![permissions - How to let MySQL (mysqld) to create and write to "/var/run/mysqld" directory? - Ask Ubuntu permissions - How to let MySQL (mysqld) to create and write to "/var/run/mysqld" directory? - Ask Ubuntu](https://i.stack.imgur.com/zQDuE.png)
permissions - How to let MySQL (mysqld) to create and write to "/var/run/mysqld" directory? - Ask Ubuntu
CentOS 7: ERROR: missing input file '@external_libs//:mysql/byte_order_generic_x86_64.h' · Issue #13 · google/mysql-ripple · GitHub
![Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. sock' (2) - Database Administrators Stack Exchange Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. sock' (2) - Database Administrators Stack Exchange](https://i.stack.imgur.com/3HqlK.png)
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. sock' (2) - Database Administrators Stack Exchange
![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)
php - mysqli non-standard socket location configuration for php5-fpm on ubuntu 14.04LTS - Server Fault
![How To Fix "Can't connect to local MySQL server through socket '/var/lib/ mysql/mysql.sock' (2)" Error? | Unixmen How To Fix "Can't connect to local MySQL server through socket '/var/lib/ mysql/mysql.sock' (2)" Error? | Unixmen](http://unixmen.com/wp-content/uploads/2014/03/Cant-connect-to-local-MySQL-server-through-socket.png)
How To Fix "Can't connect to local MySQL server through socket '/var/lib/ mysql/mysql.sock' (2)" Error? | Unixmen
![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/zNpcr.png)
macos - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' - Stack Overflow
![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)
ubuntu - Problem:: Can't connect to local MySQL server through socket '/var /run/mysqld/mysqld.sock' (2) - Stack Overflow
![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)