Content received from: http://JavaFAQ.nu/java-article113.html
I have developed my program with MySQL and Java. It runs locally. Now I want to Thursday, April 24, 2003 (00:00:00)
Posted by jalex
Question: I have developed my program
with MySQL and Java. It runs locally. Now I want to make it an online
application, including MySQL. But how do I get connection to database?
Answer: No problem! Your database always
runs "online". Even when it was running locally you connected to it by using
"localhost". Now you need to use url.
Something like this:
DriverManager.getConnection(url, user, password);
***************************************
Our older tips: March 22, 2001 - October 21, 2002
read here.
All published and not published on site tips you can find
here
|