接口测试 Jmeter5.4+JDK11 链接数据库报错(Communications link failure)问题

萧帅 · 2022年10月21日 · 2754 次阅读

Response message:java.sql.SQLException: Cannot create PoolableConnectionFactory (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 链接,(弄了我好几天天时间,也问了开发都没有找到原因)

上网看了好多方法,说是数据库的内置问题引起:

但是按照网上的方法去解决 依旧不行

后面想到了是 Jmeter5.4+JDK11 是不是有没有不支持直连 mysql 导致了

后来把 JDK11 换成 JDK8.0 果真再运行就一切正常了

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册