0


idea2022.1 连sql server

报错:[08S01] 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]”。 ClientConnectionId:272392ee-1272-4622-928d-f8e0f9e1a335
The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12].

解决办法:修改文件C:\Program Files\JetBrains\IntelliJ IDEA 2022.1\jbr\conf\security\java.security

将:jdk.tls.disabledAlgorithms 中的TLSv1,3DES_EDE_CBC删除

测试数据库连接

DBMS: Microsoft SQL Server (ver. 10.50.1600)
Case sensitivity: plain=mixed, delimited=mixed
Driver: Microsoft JDBC Driver 10.2 for SQL Server (ver. 10.2.0.0, JDBC4.2)
Ping: 51 ms
SSL: no

TLSv1 was negotiated. Please update server and client to use TLSv1.2 at minimum.

解决办法:idea中Project Structure中的SDKs选jdk18,

其中Project中SDK选择1.8

打开数据为设置:在Driver Files中发现SQL Server ver.10 删除,点+号增加8.2.2版本

标签: intellij-idea

本文转载自: https://blog.csdn.net/jetjetlinuxsystem/article/details/124280315
版权归原作者 吾日三省- 所有, 如有侵权,请联系我们删除。

“idea2022.1 连sql server”的评论:

还没有评论