Accessing a Remote Database
From: Rhino (rhino1_at_NOSPAM.sympatico.ca)
Date: 12/13/03
- Previous message: Joe Weinstein: "Re: Caching JDBC Statements"
- Next in thread: Herman Timmermans: "Re: Accessing a Remote Database"
- Reply: Herman Timmermans: "Re: Accessing a Remote Database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Dec 2003 20:24:47 -0500
I have some Java programs (including applications, applets, and servlets)
that can access the local database just fine. (By "local", I mean that the
application and the database reside on the same PC.)
What do I need to do differently if the database is *not* local? For
example, I have a Windows XP machine and I want programs running on it to
access a MySQL database at my friend's server in another town.
At present, I achieve local access by ensuring that my programs can see the
database driver and then connecting, passing in the URL (e.g.
jdbc:db2:<database-name>), userid, and password.
If I want my programs to run against the database on my friend's Linux box,
what do I need to do? Is it simply a matter of telling the driver to look on
the remote machine instead of my own machine via a different URL or is it
more involved? Can anyone take me through the steps I'll need to take?
-- Rhino --- rhino1 AT sympatico DOT ca "If you want the best seat in the house, you'll have to move the cat."
- Previous message: Joe Weinstein: "Re: Caching JDBC Statements"
- Next in thread: Herman Timmermans: "Re: Accessing a Remote Database"
- Reply: Herman Timmermans: "Re: Accessing a Remote Database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|