MySQL Forums
Forum List  »  Newbie

Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Posted by: Peter Lauren
Date: July 14, 2012 04:36PM

Martín Colodrero Wrote:
> ok so the error is easy go to /etc/mysql/my.cnf
> comment the line
> #bind-address = xxx
> if you want that read all interfaces, or in case
> you want only localhost set it as
> bind-address =
> now try again:

That worked! I just needed to do


sudo service mysql restart

at the end.

Thank you very, very much! I will bookmark this thread.

Options: ReplyQuote

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.