问题

在IDEA中连接Data Sources报错[08S01] Communications link failure.
The last packet successiuly received from the server was 4 milliseconds ago. The last packet sent successfully to the server was 4 milliseconds ago.
在这里插入图片描述
博主使用的是mysql8.0,在连接该数据库时超时。

解决方法

在连接的URL后面加上下面这段字符

?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true

连接成功^_^
在这里插入图片描述

Logo

一站式 AI 云服务平台

更多推荐