Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure

Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure,第1张

Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure 一 问题描述
Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure

The last packet successfully received from the server was 0 milliseconds ago.  The last packet sent successfully to the server was 0 milliseconds ago.
二 解决方法

看了一位老哥的办法,直接秒解决。
jdbc:mysql://111.111.111.111:3306/yyds?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC后面加上&useSSL=false,
即jdbc:mysql://111.111.111.111:3306/yyds?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false

特此记录,感谢老哥

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5709874.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存