Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 415 Bytes

mysql_to_postgresql.md

File metadata and controls

9 lines (8 loc) · 415 Bytes

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