10 lines
415 B
Markdown
10 lines
415 B
Markdown
|
# Use the shell commands below to convert a MySQL GitLab database to a PostgreSQL one.
|
||
|
|
||
|
```
|
||
|
git clone https://github.com/lanyrd/mysql-postgresql-converter.git
|
||
|
cd mysql-postgresql-converter
|
||
|
mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root gitlabhq_production
|
||
|
python db_converter.py databasename.mysql databasename.psql
|
||
|
psql -f databasename.psql -d gitlabhq_production
|
||
|
```
|