File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes URL confused?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "URL confused??" Watch "URL confused??" New topic
Author

URL confused??

Costa Lamona
Greenhorn

Joined: Sep 17, 2006
Posts: 29
Hi

I am not sure what is URL string when you create a connection
DriverManager.getConnection(url, userName, password);

Is it a way to determine the host server that host the JDBC driver, so that I can connect to a remote jdbc??

if yes, so verify the following

When you write jdbc:mysql://77.60.90.10, this will create a connection to jdbc on that machine 77.60.90.10, and mysql is listening to some port which does not change.

Thanks
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


Is it a way to determine the host server that host the JDBC driver, so that I can connect to a remote jdbc?

The server does not host the JDBC driver. The connecting client needs that.


When you write jdbc:mysql://77.60.90.10, this will create a connection to jdbc on that machine 77.60.90.10, and mysql is listening to some port which does not change.

Yes.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URL confused??