Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried connect to mysql locally. after using mysql --username='*****' --password='*****' A message displayed like:

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

I went to /var/run/mysqld/mysqkd.sock It was an empty file! what is the problem?

share|improve this question

closed as not a real question by Chopper3, pauska, Ward, rnxrx, John Gardeniers Oct 14 '12 at 12:29

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

MySQL is not running. Check logs, process lists (ps aux) etc. Do some homework.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.