Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.