一 问题描述

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

特此记录,感谢老哥

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐