天天看點

sonar mysql 5.5,Sonarqube 5.5和mariadb

sonar mysql 5.5,Sonarqube 5.5和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?

解決方案private static final Map 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.