I have talked to them, and they say that it is possible to connect to the database from where I run my java program. Later it hit me that I actually don't know what this means exactly.
Can I alter, update etc. my tables in the database using java?
How do I connect to it. Say I have this MySQL information:
Hostnavn: mysql8.unoeuro.com
Username: myName_net
Password: IamKaiTw
Database myName_net_db
And I have the java code below. How do I fill in the missing part to connect? (Do not mind the MySQL statements), the issue is loading the driver etc
public static void main(String[] args) {
try{
Class.forName("what should be here?????").newInstance(); //Load the driver
Connection conn = DriverManager.getConnection("mysql8.unoeuro.com, myName_net, IamKaiTw");
}
How do I find out what the argument to the Class.forName() should be??
Thanks in advance
This post has been edited by AOM_Set: 30 November 2011 - 08:52 AM

New Topic/Question
Reply




MultiQuote





|