ERROR 2002 (HY000): Can’t connect to local MySQL server through socket

Use the same configuration that you are attempting. Here is how I set it up.
su
mkdir /var/lib/mysql
cd /var/lib/mysql
ln -s /opt/lampp/var/mysql/mysql.sock

This will allow you to use tools such as mysql-query-browser without any hassles.

To access mysql from the command line:

/opt/lampp/bin/mysql -p

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: