记录连接数据库的一个异常 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。成功解决
保持微笑,时刻冷静,相信自己也相信队友,坚持信念