gitlab-org--gitlab-foss/doc/update/mysql_to_postgresql.md

10 lines
415 B
Markdown
Raw Normal View History

2014-03-17 13:55:56 +00:00
# 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
```