|
|
|
1000 Java Tips ebook
|
|
 

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!. |
|
I have developed my program with MySQL and Java. It runs locally. Now I want to
|
JavaFAQ Home » Databases

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 Printer Friendly Page
Send to a Friend
..
Search here again if you need more info!
|
|
|