Skip navigation links

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


Advanced Search

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Posted by: Jorge Cacho ()
Date: August 14, 2013 07:39AM

Hi all

I have a webserver with 4 Joomla websites running (using mysql)

They have been working for years but since some days from time to time they throw an error sayign they don't have a database connection.

If I try to connect manually to mysql (from console) I get this error:

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

But if I restart my mysql server everything works again from some days.

Can anyone help me in order to avoid this error?

Thanks!

Jorge

Options: ReplyQuote


Subject Written By Posted
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Jorge Cacho 08/14/2013 07:39AM
Re: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Andrew Simkovsky 08/14/2013 02:21PM
Re: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Jorge Cacho 08/14/2013 03:57PM


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.