报错:[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版本
?
?
?
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。 |