Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sonarqube 5.5 and mariadb

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:

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

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

like image 776
cocorossello Avatar asked May 04 '16 11:05

cocorossello


1 Answers

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.

like image 117
Eduardo Yáñez Parareda Avatar answered Sep 20 '22 19:09

Eduardo Yáñez Parareda