1. MySQL (http://www.mysql.com) mm.mysql-2.0.2-bin.jar
Class.forName(“org.gjt.mm.mysql.Driver”);
cn = DriverManager.getConnection( “jdbc:mysql://MyDbComputerNameOrIP:3306/myDatabaseName”, sUsr, sPwd );
或:
Class.forName(“com.mysql.jdbc.Driver”);
cn = DriverManager.getConnection( “jdbc:mysql://localhost:3306/mydata?user=root&password=root”);