zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

【已解决】spring boot项目从mysql中获取数据候错误The driver has not received any packets from the server

2023-06-13 09:15:57 时间

spring boot项目在连接mysql查询数据的时候,提示错误:The driver has not received any packets from the server

沃日。为什么会出现这种情况呢?

查看配置文件中,数据库链接配置:

好像没问题,又好像有问题。

把mysql:3308换成localhost:3308就可以了