By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,438 Members | 1,641 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,438 IT Pros & Developers. It's quick & easy.

Can't connect to remote host (10061)

P: n/a
I'm running MySQL server on a WinXP box at home. I have a cable
modem/router. I've set up port forwarding on port 3306 to the machine
running MySQL. I can connect locally just fine, but when I try to
connect from a remote location using:
mysql -h -P 3306 -u root -p mysql

I get:
ERROR 2003: Can't connect to MySQL server on '' (10061)

When I try:
mysqladmin ping -h

I get:
mysqladmin: connect to server at '' failed
error: 'Can't connect to MySQL server on '' (10061)'
Check that mysqld is running on and that the port is
You can check this by doing 'telnet 3306'

And telnet yields:
Connection To not open connection to the host,
on port 3306: Connect failed

All of this seems to indicate that the server is not running, but if I
point Internet Explorer to the IP address ("") I
get a response in the form "1 4.0.17-max-debugd4qaq4Nl, ". The text
after debug is always gibberish. It changes every time I refresh the
page. Incidentally, when I try to connect locally using telnet, I get
the same thing. It gives the version followed by max-debug, followed
by gibberish, then it disconnects after a few seconds with message
"Connection to host lost.". If I type anything within those few
seconds, it says "Bad handshake" before the final message. Finally, a
simple JSP I've written, which also works locally, fails to connect
remotely. My question: How do I connect to MySQL remotely?
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.