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: Martín Colodrero
Date: July 13, 2012 08:34PM

can you try:

service mysql stop
rm /var/run/mysqld/*
rm /var/log/mysql/*
chown mysql:root /var/run/mysqld
service mysql start

then check if exists the socket:

ls /var/run/mysqld | grep mysqld.sock

if not exists go to:
cat /var/log/mysql/error.log

and see what happen

Edited 2 time(s). Last edit at 07/13/2012 08:35PM by Martín Colodrero.

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.