Merge branch 'mysql-to-og' into 'master'
MySQL to Postgres script
This commit is contained in:
commit
66c4a7dba1
1 changed files with 9 additions and 0 deletions
9
doc/update/mysql-to-postgresql.md
Normal file
9
doc/update/mysql-to-postgresql.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# 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
|
||||
```
|
Loading…
Reference in a new issue