472,328 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Can't connect to remote host (10061)

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 xxx.xxx.xxx.xxx -P 3306 -u root -p mysql

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

When I try:
mysqladmin ping -h xxx.xxx.xxx.xxx

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

And telnet yields:
Connection To xxx.xxx.xxx.xxx...Could 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 ("xxx.xxx.xxx.xxx:3306") 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
0 8865

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stefan Hinz | last post by:
Degan, jumping in to try and solve some problems that look pretty obvious to me ... > #options for default service (mysqld2) > (mysqld2) ...
0
by: Steve Carson-Rowland | last post by:
I have tried to install MySQL 4.0.14 on my Pentium 1.7Ghz running WindowsXP Professional. the installation ran through without any problems. ...
2
by: Asad Khan | last post by:
Hello, I was using MySQL till a few days ago just fine. Now everytime I try to run it using mysql.exe, I get the following error: "can't...
0
by: Ryan Stewart | last post by:
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...
8
by: Julia | last post by:
Hi, My client uses a remote object when I host the remote object inside a windows application all seem to work fine but when I host the same...
4
by: Mondal | last post by:
Hi, I am using MySQL 5.0 beta and Active Python 2.4. I have the correct version of MySQLdb installed. The problem is that I can't connect to...
4
by: JuHui | last post by:
how to use httplib.HTTPConnection with http proxy?
14
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some...
2
by: =?Utf-8?B?Sm9zaCBOaWtsZQ==?= | last post by:
i'm in the process of putting my first .net app on a remote server, and i'm having no end of trouble getting the aspnetdb database (sitememberships...
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.