Commit 66c4a7dba1f9ff2018811dc04ebc1b2e7eb269a3

Authored by Dmitriy Zaporozhets
2 parents de855e24 70994c34

Merge branch 'mysql-to-og' into 'master'

MySQL to Postgres script
Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
doc/update/mysql-to-postgresql.md 0 → 100644
@@ -0,0 +1,9 @@ @@ -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 +```