MySQL Forums
Forum List  »  Install & Repo

Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Posted by: Craig S
Date: November 28, 2005 07:29PM

For this error, you'll need to check permissions. Specifically, you might want to check the 'data' directory wherever it might be located on your computer.

Specifically, on my OS X installation, it is located at /usr/local/mysql/data. An easy way to remedy would be to do the following:


> sudo chmod 775 /usr/local/mysql/data


Hope that helps!
cs

Options: ReplyQuote


Subject
Written By
Posted
January 08, 2009 02:01PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
November 28, 2005 07:29PM
April 15, 2009 11:56AM
October 21, 2009 06:18PM


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.