database - Sonar : com. mysql.jdbc.exceptions.jdbc4.CommunicationsException:通信链路故障

标签 database jenkins sonarqube

正在运行来自 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/

相关文章:

maven - Jenkins 管道日志文件按并行阶段分离

Sonarqube 在不删除现有问题的情况下运行分析

css - Sonar css : How to disable "Unexpected unknown type" rule for selectors with prefix "pr-"

php - 将经常访问的数据存储在文件中而不是 MySQL

c++ - ESENT 二级索引已损坏,必须对数据库进行碎片整理

javascript - 用 10 个随机字符生成 3 个字符

android - 如何配置用于 "Exception handlers should provide some context and preserve the original exception"问题的记录器?

database - 将图像作为 varbinary (silverlight) 保存到数据库

tfs - Jenkins TFS 插件抛出 NumberFormatException

android - Jenkins 矩阵构建 : how to build once and publish that binary to slaves?