Super User is a question and answer site for computer enthusiasts and power users. 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 recently downloaded and installed this software on my VPS:

It's a package for easy installation of postfix, dovecot, and MySQL mail server. The installation appeared to go just fine, but I believe something went wrong. I can no longer access anything on my website that uses MySQL (so the forums, wiki, etc.) and it won't even run through the command line.

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) the error I get whenever I try to run MySQL, but the "mysql --help" command seems to work just fine.

Any of you guys know what's up?

share|improve this question
Are you sure you have started the mysql server? – Nifle Jan 4 '13 at 20:13
Yes, I did start the mysql server. – Joey Miller Jan 4 '13 at 23:30

Never mind, this had to do with a user/pass mixup in /etc/mysql/debian.cnf. Looks like what I installed changed those values, but for those that ever have the same problem be sure that the values in debian.cnf are the same user/pass values you want to use for your stuff. Encrypting it wouldn't hurt but debian.cnf is unsafe in general. Thanks for the help, everyone.

So, if you ever install this software but already have MySQL etc., then make sure you check debian.cnf.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .