记录连接数据库的一个异常 The last packet successfully received from the server was 1 milliseconds ago. The last packet

记录连接数据库的一个异常

Cannot create PoolableConnectionFactory (Communications link failure The last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.)


百度过,尝试过加上&autoReconnect=true,

使用过show variables like '%timeout%';对比过数据库的timeout的各个参数,参考链接https://blog.csdn.net/jiadajing267/article/details/79516989

但与能连接的数据库的参数一样。

最后是在URL中添加参数:useSSL=false。成功解决

posted @ 2022-05-20 19:29  我见青山应如是  阅读(1037)  评论(0编辑  收藏  举报