码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 【mysql】ssl_choose_client_version:unsupported protocol


    起因:项目上的DolphinScheduler连接不上数据库,查看worker日志提到SSL协议问题:

    1. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
    2. Caused by: java.io.EOFException: SSL peer shut down incorrectly

    我的排除思路:

    1、使用命令连接:

            1)mysql -uxxxx -p   

                    error:ssl_choose_client_version:unsupported protocol

            2)使用客户环境登入mysql查看TLS版本,发现5.7版本为TLSv1,TLSv1.1:SHOW VARIABLES LIKE 'tls_version';

           3)查看mysql版本发现本地workbench是8.0.30,而客户的MySQL版本为5.7。

    2、网上查阅相关问题:

            1)查阅官网发现问题原因,原来是8.0.15后去除了TLSv1:MySQL :: MySQL 8.0 Reference Manual :: 8.3.2 Encrypted Connection TLS Protocols and Ciphers

    Supported TLS Protocols

    The set of protocols permitted for connections to a given MySQL server instance is subject to multiple factors as follows:

    MySQL Server release

    • Up to and including MySQL 8.0.15, MySQL supports the TLSv1, TLSv1.1, and TLSv1.2 protocols.

    • As of MySQL 8.0.16, MySQL also supports the TLSv1.3 protocol. To use TLSv1.3, both the MySQL server and the client application must be compiled using OpenSSL 1.1.1 or higher. The Group Replication component supports TLSv1.3 from MySQL 8.0.18 (for details, see Section 20.6.2, “Securing Group Communication Connections with Secure Socket Layer (SSL)”).

    • As of MySQL 8.0.26, the TLSv1 and TLSv1.1 protocols are deprecated. These protocol versions are old, released in 1996 and 2006, respectively, and the algorithms used are weak and outdated. For background, refer to the IETF memo Deprecating TLSv1.0 and TLSv1.1.

    • As of MySQL 8.0.28, MySQL no longer supports the TLSv1 and TLSv1.1 protocols. From this release, clients cannot make a TLS/SSL connection with the protocol set to TLSv1 or TLSv1.1. For more details, see Removal of Support for the TLSv1 and TLSv1.1 Protocols.

    解决:回退DolphinScheduler worker节点mysql版本>8.0.26

  • 相关阅读:
    提示工程 vs 微调 vs RAG
    今天面了个腾讯拿38K出来的,让我见识到了基础的天花板
    基于低代码平台的多租户解决方案
    Hive开启CTE
    Tomcat 的安装以及其中配置环境原理的详细说明
    LLMs 驱动的数据合成、整理和评估
    2-2、依赖注入以及特殊属性的赋值
    Java项目:JSP的电影院售票系统(含论文、任务书、中期检查表)
    Angular使用指令配合RXJS使用节流throttle
    LeetCode 2385.感染二叉树需要的总时间:两次搜索(深搜 + 广搜)
  • 原文地址:https://blog.csdn.net/qq_41372916/article/details/139299744
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号