本文主要是介绍使用idea连接SQL Server数据库出错TLS10 is not accepted,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
使用idea连接数据库时,发现提示错误:
驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]”。等等出错提示。
可能有两个地方要修改:
一、JDK安装目录的java.security文件。如:jdk1.8.0_121/jre/lib/security/java.security
二、idea自带的java.security,搜索idea安装目录,可能会找到以下文件:idea-IU/jbr/conf/security/java.security
在java.security文件里找到jdk.tls.disabledAlgorithms项,把TLSv1, TLSv1.1 移除,重启软件试试。
这篇关于使用idea连接SQL Server数据库出错TLS10 is not accepted的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!