diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-17 13:57:52 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-17 13:57:52 +0000 |
commit | 66c4a7dba1f9ff2018811dc04ebc1b2e7eb269a3 (patch) | |
tree | 94efd6886f1437a78ad69f75a3842d9485d2744a /doc | |
parent | de855e2420465e66009b9773bc2a928b73153841 (diff) | |
parent | 70994c348dede58b6ed8da84b02465e4665dc305 (diff) | |
download | gitlab-ce-66c4a7dba1f9ff2018811dc04ebc1b2e7eb269a3.tar.gz |
Merge branch 'mysql-to-og' into 'master'
MySQL to Postgres script
Diffstat (limited to 'doc')
-rw-r--r-- | doc/update/mysql-to-postgresql.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/update/mysql-to-postgresql.md b/doc/update/mysql-to-postgresql.md new file mode 100644 index 00000000000..9a324545eb0 --- /dev/null +++ b/doc/update/mysql-to-postgresql.md @@ -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 +``` |