How to migrate SonarQube 6.7 from MySQL to postgresql(如何将 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql
基础教程推荐
- MySQL 5.7参照时间戳生成日期列 2022-01-01
- 带有WHERE子句的LAG()函数 2022-01-01
- 带更新的 sqlite CTE 2022-01-01
- CHECKSUM 和 CHECKSUM_AGG:算法是什么? 2021-01-01
- 如何在 CakePHP 3 中实现 INSERT ON DUPLICATE KEY UPDATE aka upsert? 2021-01-01
- MySQL根据从其他列分组的值,对两列之间的值进行求和 2022-01-01
- 从字符串 TSQL 中获取数字 2021-01-01
- ORA-01830:日期格式图片在转换整个输入字符串之前结束/选择日期查询的总和 2021-01-01
- while 在触发器内循环以遍历 sql 中表的所有列 2022-01-01
- 使用 VBS 和注册表来确定安装了哪个版本和 32 位 2021-01-01
