正在运行来自 Jenkins 的 Sonar 。 Sonar 版本是2.13 我遇到了这个异常
请帮助我
[ERROR] [21:49:15.205] JDBC begin failed
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 7,028,219 milliseconds ago. The last packet sent successfully to the server was 16 milliseconds ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.6.0_18]
at
Sonar 的 Jenkins 工作几乎运行了 1:30 分钟,这是 jdbc 连接松动的原因
最佳答案
您可以使用标准 SQL 导航器产品(如 squirrel)连接到相同的 JDBC URL ?
也许这是显而易见的事情,例如数据库已关闭。
更新
以下线程描述了相同的问题:
在这种情况下,这是 MySQL 服务器上的权限问题。客户端IP地址受到限制。
关于database - Sonar : com. mysql.jdbc.exceptions.jdbc4.CommunicationsException:通信链路故障,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10320603/