Super User is a question and answer site for computer enthusiasts and power users. 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

I spent two days trying to figure this one out. Basically I couldn't connect to the localhost MySQL database installed by XAMPP 1.7.4 using MySQL Workbench. I got a socket connection error (1061) or something like that.

share|improve this question
up vote 0 down vote accepted

The very simple workaround for this is simply to add the following line to your my.cnf :


This way you can connect from any server or interface.

share|improve this answer

Is this error 10061? Please give a full trace of the error.

Just checking a few things:

  1. Are you sure you are connecting to localhost on port 3306?

  2. Is MySQL started?

  3. Do you have the following line in your my.ini file?

share|improve this answer
Thanks @slotishtype, actually I tried with bind-address=, but it did not work. – rdrgrtz Jul 11 '11 at 22:08

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.