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) FIX
Posted by: Richard Branham
Date: January 22, 2009 07:05PM

I received this error when attempting to connect to a mysql db using the C API. I was using "localhost" for the server address and changed it to the IP address (not 127.0.0.1 but 10.192.1.25, for example) and the connection succeeded.

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) FIX
January 22, 2009 07:05PM


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.