Commit 70994c348dede58b6ed8da84b02465e4665dc305
1 parent
0aa389b4
Exists in
spb-stable
and in
3 other branches
Postgresql conversion script.
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,9 @@ |
1 | +# Use the shell commands below to convert a MySQL GitLab database to a PostgreSQL one. | |
2 | + | |
3 | +``` | |
4 | +git clone https://github.com/lanyrd/mysql-postgresql-converter.git | |
5 | +cd mysql-postgresql-converter | |
6 | +mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root gitlabhq_production | |
7 | +python db_converter.py databasename.mysql databasename.psql | |
8 | +psql -f databasename.psql -d gitlabhq_production | |
9 | +``` | ... | ... |