1.Mysql
驱动类:com.mysql.jdbc.Driver
连接字符串:jdbc:mysql://localhost:3306/dbname
2.Oracle
驱动类:oracle.jdbc.driver.OracleDriver
连接字符串:jdbc:oracle:thin:@localhost:1521:dbname
3.Sqlserver
驱动类:com.microsoft.jdbc.sqlserver.SQLServerDriver
连接字符串:jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=dbnm
4.Access
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn=DriverManager.getConnection("jdbc:odbc:driver={Microsoft Access Driver(*.mdb)};DBQ=C:\\db.mdb",username,password);
5.jdbc-odbc
驱动类:sun.jdbc.odbc.JdbcOdbcDriver
连接字符串:jdbc:odbc:dsnname