码迷,mamicode.com
首页 > 数据库 > 详细

三大数据库默认端口

时间:2019-10-17 01:29:16      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:默认端口   microsoft   ase   端口   edr   article   database   oca   bsp   

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";

 

三大数据库默认端口

标签:默认端口   microsoft   ase   端口   edr   article   database   oca   bsp   

原文地址:https://www.cnblogs.com/abcdjava/p/11689468.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!