File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Aug 30, 2005
Sep 19, 2006 10:08:00
Hi Guys :
Any idea what a "NoRouteToHostException" is ? Im just trying
to connect to a mysql database locally.
I have tested another schema, on the same database - and dont get an error.
I have also tested the code that im running before and know that
it works (Im not a jdbc newbie).
any ideas ?
Joined: Oct 23, 2005
Sep 19, 2006 12:09:00
Assuming there database server is up and you have the right port, it might be because of a firewall program.
Down Home Country Coding with Scott Selikoff
Joined: Jan 15, 2006
Sep 19, 2006 20:32:00
Try a simple
mysql -u root -p -h localhost
No route to host means that your host name could not be resolved or as already suggested if running and on the right port something is blocking the tcp/ip connection.
If that does not work try
mysql -u root -p -h 127.0.0.1
that should take the not resolvable name problem out and if it works put it in your code.
I agree. Here's the link:
Applet+Socket+Through+Proxy+Win98 n NT
how to use the jre with JApplets
Writing updated database to file??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014