Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

The IP address on my server recently was changed, and after the change, i performed a restart and when it came back online MySQL stopped working. I am running Debian 6.

I type mysql -u username -p and I get this message:

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

any idea what happened? How to fix it?

share|improve this question

When the server's IP was changed, the bind-address in /etc/mysql/my.cnf was still set to the old IP, which caused this problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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