1) SQLServer2000:驱动包(msbase.jar mssqlserver.jar msutil.jar)
 url:      jdbc:microsoft:sqlserver://localhost:1433;databasename=pubs
 driver:   com.microsoft.jdbc.sqlserver.SQLServerDriver
 
2) SQLServer2005:驱动包(sqljdbc.jar)
 url:      jdbc:sqlserver://localhost:1433;databasename=pubs
 driver:   com.microsoft.sqlserver.jdbc.SQLServerDriver


3) Oracle:驱动包(classes12.jar)
 url: jdbc:oracle:thin:@127.0.0.1:1521:xujian
 (语法:jdbc:oracle:thin@自己的IP:数据库端口:数据库名)
 driver: oracle.jdbc.driver.OracleDriver  

4) mysql:驱动包(mysql-connector-java-5.1.7-bin.jar)
 url1:jdbc:mysql://127.0.0.1:3306/mysql
 url2:jdbc:mysql://127.0.0.1/[数据库名称]?user=root&password=891226xj
 driver:org.gjt.mm.mysql.Driver

 

5) mysql:驱动包(mysql-connector-java-3.1.12-bin.jar)
 url1:jdbc:mysql://127.0.0.1:3306/mysql
 url2:jdbc:mysql://127.0.0.1/[数据库名称]?user=root&password=891226xj
 driver:org.gjt.mm.mysql.Driver



 
 
Sun_Java_XuJian