Oracle、MySql、SQL Server连接JDBC的字符串

Oracle 9i

driver =  "oracle.jdbc.driver.OracleDriver";
url = "jdbc:oracle:thin:@192.168.0.20:1521:数据库实例";

MySQL 5.0
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/数据库实例"
url="jdbc:mysql://localhost:3306/数据库实例_dbo?user=root&password=123";

 

SQL server 2000
driver="com.microsoft.jdbc.sqlserver.SQLServerDviver"
url="jdbc:microsoft:sqlserver://localhost:1433;DatebaseName=数据库实例"
url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=数据库实例;user=sa;password=123"


SQL server 2005
driver="com.microsoft.sqlserver.jdbc.SQLServerDriver";
url="jdbc:sqlserver://localhost:1433;DatabaseName=数据库实例"
url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=数据库实例;user=sa;password=123"

 

你可能感兴趣的:(oracle,sql,mysql,jdbc,server,Microsoft,sqlserver)