Goland 链接数据库失败

同一个数据库,在IntelliJIdea2021.1里连接可以正常连接成功;在GoLand2021.1里连接提示如下问题(似乎是升级之前可以连接成功)

[08S01]
    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.
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate).

根据提示,应该是下面四种问题之一—— No appropriate protocol

  • The TLS implementation used by the client does not support the cipher suites used by the server's certificate.
  • The TLS configuration on the server has disabled cipher suites supported by the client.
  • The TLS configurations on the client disable cipher suites offered by the server.
  • TLS version incompatibility between the client and server.

javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

根据环境条件,看起来是Goland这个版本的问题,下搁置一下

官方也有类似的issue在跟踪: Can't connect to remote MySQL since last version of IntelliJ

上面的issue中答案,一句话解决:指定连接的协议版本即可。

亲测可用,详情参看: [08S01]问题Communications link failure... No appropriate protocol

你可能感兴趣的:(Goland 链接数据库失败)