Sonarqube 5.5 和 mariadb [英] Sonarqube 5.5 and mariadb

查看:39
本文介绍了Sonarqube 5.5 和 mariadb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试升级到最新的 sonarqube 5.5.我们有 mariadb 10.1(最新),从现在开始我们对 sonarqube 没有任何问题.

We are trying to upgrade to lastest sonarqube 5.5. We have mariadb 10.1 (latest) and since now we had no problems with sonarqube.

现在,随着升级,sonarqube 将无法启动.它说:

Now, with the upgrade, sonarqube will not boot. It says:

不支持的 mysql 版本:5.5.支持的最低版本是 5.6.

Unsupported mysql version: 5.5. Minimal supported version is 5.6.

有什么技巧可以让我们使用 mysql 5.6 让声纳认为"吗?

Is there any trick we can use to make "sonar think" we are using mysql 5.6?

推荐答案

您可以更改 Sonarqube 类中的 MINIMAL_SUPPORTED_DB_VERSIONS 成员 https://github.com/SonarSource/sonarqube/blob/master/sonar-db/src/main/java/org/sonar/db/DatabaseChecker.java

You could change the MINIMAL_SUPPORTED_DB_VERSIONS member in the Sonarqube's class https://github.com/SonarSource/sonarqube/blob/master/sonar-db/src/main/java/org/sonar/db/DatabaseChecker.java

  private static final Map<String, Version> MINIMAL_SUPPORTED_DB_VERSIONS = ImmutableMap.of(
    // MsSQL 2008 is 10.x
    // MsSQL 2012 is 11.x
    // MsSQL 2014 is 12.x
    // https://support.microsoft.com/en-us/kb/321185
    MsSql.ID, Version.create(10, 0, 0),
    MySql.ID, Version.create(5, 6, 0),
    Oracle.ID, Version.create(11, 0, 0),
    PostgreSql.ID, Version.create(8, 0, 0)
  );

然后重新构建项目,但是如果他们有这个要求,那么在更改之后可能并非一切都可以正常工作.

And build the project again, but If they have that requirement it's possible that after the change not everything is going to work fine.

这篇关于Sonarqube 5.5 和 mariadb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆