Gerrit migration from Postgresql to Mysql

37 views
Skip to first unread message

Ashwini T R

unread,
Jul 27, 2016, 1:30:05 AM7/27/16
to Repo and Gerrit Discussion
Hi,

Could anyone share me steps followed to migrate Entire gerrit data from Postgresql to Existing Mysql data.

thanks
Ashwini

Saša Živkov

unread,
Jul 27, 2016, 9:12:18 AM7/27/16
to Ashwini T R, Repo and Gerrit Discussion
On Wed, Jul 27, 2016 at 7:30 AM, Ashwini T R <ashu.r...@gmail.com> wrote:
Hi,

Could anyone share me steps followed to migrate Entire gerrit data from Postgresql to Existing Mysql data.

What do you mean by "Existing mysql data" here?

Basically you need to export data from postgres into some text form which can be imported into mysql.
There is really nothing Gerrit specific in this first step, just Google something like: migrate data from postgres to mysql

When the data is imported you will need to:
* adjust the value in the few tables which represent sequences (account_id, change_id, change_message_id, ...)
* change the [database] section in gerrit.config to make sure it connects to your mysql database


 

thanks
Ashwini

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages