MySQL Forums
Forum List  »  Install & Repo

Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Posted by: Darryl Allardice
Date: February 19, 2006 04:10PM

SOLVED:

My problem (Ubuntu) was a permission issue on /var/run/mysqld and the clue was that logging into mysql worked when I was root, but not as any other use (did not work with '-u root' on the command line either). Here is an 'ls -l' for me:

(login failed)
drwxrwx--- 2 mysql root 80 2006-02-19 16:51 mysqld

(login succeeded)
drwxrwxr-x 2 mysql root 80 2006-02-19 16:51 mysqld

Hope this helps someone.

Regards,
-Darryl

Options: ReplyQuote


Subject
Written By
Posted
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
February 19, 2006 04:10PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.