三大数据库默认端口

落花浮王杯 提交于 2019-12-01 13:54:50

1.Oracle数据库的默认端口:1521

Url:"jdbc:oracle:thin:@localhost :1521:orcl";

DriverName:"oracle.jdbc.driver.OracleDriver";

2.MySQL数据库的默认端口:3306

Url:jdbc:mysql://localhost:3306/test? user=root&password=xxxxx; (MySQL5系列)

DriverName:"com.mysql.jdbc.Driver";


Url:jdbc:mysql://localhost:3306/test? user=root&password=xxxxx&serverTimezone=UTC&characterEncoding=utf-8&useSSL=false; (MySQL8系列)

DriverName:"com.mysql.cj.jdbc.Driver";

3.sqlserver数据库的默认端口号为:1433

URL:"jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=dbname";

DriverName:"com.microsoft.jdbc.sqlserver.SQLServerDriver";

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!