Skip to content

myweb连接mysql失败 #7

Closed
Closed
@Jacarlianda

Description

@Jacarlianda

1.3.3 myweb-rc.yaml 镜像用的mysql-connector-java-5.1.37.jar,不兼容1.3.2 mysql-rc.yaml默认镜像 mysql 8,导致连接失败,需要将1.3.2 mysql-rc.yaml 指定mysql5.7版本。

Activity

wss434631143

wss434631143 commented on Feb 17, 2020

@wss434631143

我也遇到这个问题了,改成5.7解决。

duncanwang

duncanwang commented on Aug 17, 2021

@duncanwang

我在有3个公网IP的ECS搭建了集群,也采用了mysql 5.7版本。myweb pod在node2, mysql pod在node1.
只能在node2节点访问web才有效,访问时出现错误,好像是不能识别mysql服务。
Error:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

kubeguide

kubeguide commented on Sep 25, 2024

@kubeguide
Owner

请使用 mysql 5.7版本测试,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @wss434631143@Jacarlianda@duncanwang@kubeguide

        Issue actions

          myweb连接mysql失败 · Issue #7 · kubeguide/K8sDefinitiveGuide-V4-Sourcecode