dinky报错:Communications link failure The last packet sent successfully to the server was 0 millisecon
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from t
·
dinky链接MySQL报错
说明:
MySQL版本是5.x版本
driver版本是:8.x版本
com.mysql.cj.jdbc.exceptions.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.
报错截图如下:
解决办法:
将
jdbc:mysql://nwh120:3306
换成
jdbc:mysql://nwh120:3306?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
即可连接成功
连接成功截图如下:
更多推荐
已为社区贡献1条内容
所有评论(0)