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

my setup
host: win 7
guest : opensuse []
Ports forwarded 80, 22 from to
Connection to VM using winscp with user@ using public key authentication is working. I can access Apache as well by going to on host machine.

I can't access mysql by using ssh tunnel. I am using heidisql. I have another remote machine which I am accessing via ssh tunnel and it is working fine with same configuration on that server.

I always get

"SQl Error(2003) in statement #0: Can't connect to MySQL server on 'localhost' (10061)"

What am I doing wrong?

share|improve this question
update: if I use putty to first open tunnel and forward port 3308 to and then use heidisql to connect via tcp/ip with port 3308, I am able to connect with same credentials. I guess it may be heidisql issue. – codescope Sep 20 '13 at 4:08

I was having the same problem. I solve it by increasing "plink.exe timeout" setting in ssh tunnel tab.

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.