Sonarqube 5.5和mariadb [英] Sonarqube 5.5 and mariadb

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

问题描述

我们正在尝试升级到最新的声纳5.5.我们有了mariadb 10.1(最新版本),从现在开始,声纳古贝就没有问题了.

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.

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

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 成员/blob/master/sonar-db/src/main/java/org/sonar/db/DatabaseChecker.java"rel =" noreferrer> 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天全站免登陆