数据库
Posted 阿明,小明
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了数据库相关的知识,希望对你有一定的参考价值。
异常记录
java8客户端连接报TLS1.1错误
问题描述
java8客户端(DBeaver)连接 Win7 服务端报错:
The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]". ClientConnectionId:4d7779ea-a4bc-44dd-a0b6-5782e17ccef2
The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]
The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]
解决方法
打补丁,修改注册表:
- 可通过此可选的 Windows 更新包在 Windows Server 2008 上启用 TLS 1.1/1.2。
- 更新了 以在 Windows 中的 WinHTTP 中启用 TLS 1.1 和 TLS 1.2 作为默认安全协议
- 补丁
修补程序安装程序不会添加 DefaultSecureProtocols 值。 管理员必须在确定替代协议后手动添加条目。 或者,可以安装"简易修复"以自动添加条目。
简易修复
若要自动添加 DefaultSecureProtocols 注册表子项,请单击此处。 在“文件下载”对话框中,单击“运行”或“打开”,然后按照 Easy Fix 向导中的步骤操作。
待续...
以上是关于数据库的主要内容,如果未能解决你的问题,请参考以下文章
将代码片段插入数据库并在 textarea 中以相同方式显示
python 用于数据探索的Python代码片段(例如,在数据科学项目中)
如何在片段中使用 GetJsonFromUrlTask.java