Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) Lampp

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

If you found same problem, like that.
you must create link /var/run/mysqld/mysqld.sock.

first, make a directory mysqld in /var/run

mkdir /var/run/mysqld

and then create link

ln -s /opt/lampp/var/mysql/mysql.sock /var/run/mysqld/mysqld.sock

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s