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
基础教程推荐
- 在多列上分布任意行 2021-01-01
- 二进制文件到 SQL 数据库 Apache Camel 2021-01-01
- 在 MySQL 中:如何将表名作为存储过程和/或函数参数传递? 2021-01-01
- mysql选择动态行值作为列名,另一列作为值 2021-01-01
- 表 './mysql/proc' 被标记为崩溃,应该修复 2022-01-01
- 如何根据该 XML 中的值更新 SQL 中的 XML 2021-01-01
- MySQL 中的类型:BigInt(20) 与 Int(20) 2021-01-01
- oracle区分大小写的原因? 2021-01-01
- 如何在 SQL 中将 Float 转换为 Varchar 2021-01-01
- 什么是 orradiag_<user>文件夹? 2022-01-01
