Posted By:
Serene_Chow
Posted On:
Wednesday, July 21, 2004 09:55 AM
Hi, I recently installed MySQL and JDBC driver into my PC. MySQL is working fine however when I try to connect and access MySQL thru JDBC, it gives me error. The exception occurs at L2, L1: Class.forName("com.mysql.jdbc.Driver").newInstance(); L2: con = DriverManager.getConnection("jdbc:mysql:///test", "username", "password"); Is there anything wrong with my codes? Or is there any settings that I missed out? Has anyone face the same problem before? Please advice. Thanks! Rgds, Serene
More>>
Hi,
I recently installed MySQL and JDBC driver into my PC. MySQL is working fine however when I try to connect and access MySQL thru JDBC, it gives me error. The exception occurs at L2,
L1: Class.forName("com.mysql.jdbc.Driver").newInstance();
L2: con = DriverManager.getConnection("jdbc:mysql:///test", "username", "password");
Is there anything wrong with my codes? Or is there any settings that I missed out? Has anyone face the same problem before? Please advice. Thanks!
Rgds,
Serene
<<Less