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:36PM

Oh, and one more thing. Come to think of it, this is another problem specific to OS X, but may creep in to haunt you too. Your DNS might not be something that makes MYSQL happy when referencing itself on 127.0.0.1, so you might need to help it. You can do so by doing the following command:

> sudo hostname 127.0.0.1

This fix is definitely something specific to OS X, but may help you others diagnose issues on your own installs..

Good luck!

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:36PM
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.