如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql [英] How to migrate SonarQube 6.7 from MySQL to postgresql

查看:86
本文介绍了如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要将 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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