Skip navigation links

MySQL Forums :: Install :: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


Advanced Search

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Posted by: Alistair Fitchie ()
Date: November 06, 2009 08:00AM

A nice chap called Mr Branham once posted his fix for this problem which is as follows:

"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."

Problem is, being a complete and utter newbie to Linux, I haven't a clue how to do as he says...

Can anyone out there explain (preferably in single syllables) how this amazing feat is done?

Thank you for your attention.

Options: ReplyQuote


Subject Written By Posted
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Alistair Fitchie 11/06/2009 08:00AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Matt Pellegrino 11/17/2009 07:59PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Alistair Fitchie 11/18/2009 07:20AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Boris Fain 11/19/2009 10:07AM


Sorry, only registered users may post in this forum.