Java examples for JDBC:MySQL
Loading a JDBC Driver for MySQL
public class Main { public static void main(String[] argv) throws Exception { try {/*from ww w . j a v a 2 s . co m*/ // Load the JDBC driver String driverName = "org.gjt.mm.mysql.Driver"; Class.forName(driverName); } catch (ClassNotFoundException e) { } } }