Saturday, 14 September 2013

Connecting to mySQL Database with Java

Connecting to mySQL Database with Java

In my program I am trying to connect to a mySQL database. This program is
written in Java.
I am trying to connect to my database with this code here (? is a place
holder b/c I dont know what does there.)
Connection conn = DriverManager.getConnection("jdbc:sqlite:*?*");
I need someone to help me replace the ? to connect to my database. I know
the IP (Just call it ..* for security reasons, the port which is 3306 and
the database is called devicede_Test).
Please help me replace the ? with the correct string with the info above,
thanks!

No comments:

Post a Comment