连接mysql报错:Communications link failure The last packet successfully received from the server was 3,5

Posted 淡语

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了连接mysql报错:Communications link failure The last packet successfully received from the server was 3,5相关的知识,希望对你有一定的参考价值。

异常错误:Communications link failure  The last packet successfully received from the server was 3,544 milliseconds ago

解决方法:

找到application-druid.yml文件

将testOnBorrow: false

修改为

testOnBorrow: true

以上是关于连接mysql报错:Communications link failure The last packet successfully received from the server was 3,5的主要内容,如果未能解决你的问题,请参考以下文章