问题描述
我们需要将 SonarQube 从 MySQL 迁移到 posgresql.
We need to migrate SonarQube from MySQL to posgresql.
为此,我将从 MySQL 导出并导入到 postgresql.这是我可以处理的,有足够多的手册,而且我对数据库魔法也很满意;)
To achieve this, I would export from MySQL and import to postgresql. This I can handle, there are more than enough manuals for this and also I'm OK with database magic ;)
但是,我的问题是:这对 SonarQube 是否适用?SonarQube 是否使用了一些特定于数据库的魔法来消除迁移能力?
However, my question is: would that work for SonarQube in general? Does SonarQube use some database-specific magic that would eliminate the ability to migrate?
史蒂芬
推荐答案
好消息:SonarQube 中没有使用特定的数据库魔法.
Good news : there is no specific database magic used in SonarQube.
但是,请注意,由于某些数据库的限制(例如,布尔类型),某些列具有不同的类型.
However, note that some column have different types due to limitation on some database (for instance, the boolean type).
所以如果你想从 MySQL 迁移到 Postgresql,我强烈建议让 SonarQube 先创建模式(并且使用与 MySQL 相同版本的 SonarQube)然后进行迁移,但你可能需要调整某些列的一些迁移(同样可能是布尔类型).
So if you want to migrate from MySQL to Postgresql, I highly suggest to let SonarQube create the schema first (and with same version of SonarQube than the one used with MySQL) and then do the migration, but you may need to adjust some migration for some of the column (again probably for boolean type).
这篇关于如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!