Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么SQL SERVER 连接不上啊说端口无效 #102

Closed
CHANGUO opened this issue May 10, 2023 · 7 comments
Closed

为什么SQL SERVER 连接不上啊说端口无效 #102

CHANGUO opened this issue May 10, 2023 · 7 comments
Assignees
Labels
developing This feature will be added in future releases

Comments

@CHANGUO
Copy link

CHANGUO commented May 10, 2023

image

@Chat2DB-Pro
Copy link
Collaborator

麻烦看下~.chat2db/logs下的日志

@CHANGUO
Copy link
Author

CHANGUO commented May 10, 2023

麻烦看下~.chat2db/logs下的日志

2023-05-10 12:32:40.892 [http-nio-127.0.0.1-10824-exec-4] INFO c.a.d.s.w.a.a.BusinessExceptionHandler - proceed end:com.alibaba.dbhub.server.web.api.controller.data.source.DataSourceControllerpreConnect, result:{"errorCode":"端口号 1433/ 无效。","success":false}, cost:1
2023-05-10 12:32:41.069 [http-nio-127.0.0.1-10824-exec-5] INFO c.a.d.s.w.a.a.BusinessExceptionHandler - proceed begin:com.alibaba.dbhub.server.web.api.controller.data.source.DataSourceControllerpreConnect ,param:[{"alias":"@127.0.0.1","type":"SQLSERVER","url":"jdbc:sqlserver://127.0.0.1:1433/","user":"sa"}]
2023-05-10 12:32:41.069 [http-nio-127.0.0.1-10824-exec-5] INFO c.a.d.s.w.a.a.BusinessExceptionHandler - proceed end:com.alibaba.dbhub.server.web.api.controller.data.source.DataSourceControllerpreConnect, result:{"errorCode":"端口号 1433/ 无效。","success":false}, cost:0
2023-05-10 12:32:41.228 [http-nio-127.0.0.1-10824-exec-7] INFO c.a.d.s.w.a.a.BusinessExceptionHandler - proceed begin:com.alibaba.dbhub.server.web.api.controller.data.source.DataSourceControllerpreConnect ,param:[{"alias":"@127.0.0.1","type":"SQLSERVER","url":"jdbc:sqlserver://127.0.0.1:1433/","user":"sa"}]
2023-05-10 12:32:41.229 [http-nio-127.0.0.1-10824-exec-7] INFO c.a.d.s.w.a.a.BusinessExceptionHandler - proceed end:com.alibaba.dbhub.server.web.api.controller.data.source.DataSourceControllerpreConnect, result:{"errorCode":"端口号 1433/ 无效。","success":false}, cost:1
这个应用是不是类似这个 需要信任服务器?
image

@wholon
Copy link

wholon commented May 12, 2023

遇到同样的问题

@Chat2DB-Pro Chat2DB-Pro added the developing This feature will be added in future releases label May 14, 2023
@Chat2DB-Pro
Copy link
Collaborator

1.0.3已经修复这个问题

@CHANGUO
Copy link
Author

CHANGUO commented May 17, 2023

engfei-jpf closed this as completed May 17, 2023

image
还是有一个问题。。。这个肯定和服务器没关系的

@Chat2DB-Pro
Copy link
Collaborator

啊,我看了下这个是因为安全协议的问题,安全协议新的JDK不支持了,你们系统连接sqlserver使用的java吗?java多少版本?我们要去改jre才能解决这个问题:https://stackoverflow.com/questions/67246010/error-message-the-server-selected-protocol-version-tls10-is-not-accepted-by-cli

@CHANGUO
Copy link
Author

CHANGUO commented May 18, 2023

啊,我看了下这个是因为安全协议的问题,安全协议新的JDK不支持了,你们系统连接sqlserver使用的java吗?java多少版本?我们要去改jre才能解决这个问题:https://stackoverflow.com/questions/67246010/error-message-the-server-selected-protocol-version-tls10-is-not-accepted-by-cli

JDK .18 JDBC使用多了2个参数encrypt=true;trustServerCertificate=true;

com.microsoft.sqlserver
mssql-jdbc
12.3.0.jre8-preview

这个驱动包会有SSL警告提示。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developing This feature will be added in future releases
Projects
None yet
Development

No branches or pull requests

4 participants