diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-08-24 00:44:54 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-08-24 00:44:54 +0400 |
commit | 9b1bef54de2592997089c6de6f40d67311637f92 (patch) | |
tree | 3ec26f7b8c743483925fe5b0ad77a15751bfb262 /doc/update/mysql_to_postgresql.md | |
parent | b0c96ec5a38fce838e8589ee3c7559a72a5f14db (diff) | |
parent | 8ee3299cc451898b7072383dab7d54601b8bd479 (diff) |
Merge branch 'import_postgres_user' into 'master'
Import the database as the `git` user
See merge request !762
Diffstat (limited to 'doc/update/mysql_to_postgresql.md')
-rw-r--r-- | doc/update/mysql_to_postgresql.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/update/mysql_to_postgresql.md b/doc/update/mysql_to_postgresql.md index 219a3bb635b..ed72e156efe 100644 --- a/doc/update/mysql_to_postgresql.md +++ b/doc/update/mysql_to_postgresql.md @@ -15,7 +15,9 @@ git clone https://github.com/gitlabhq/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 + +# Import the database dump as the application database user +sudo -u git psql -f databasename.psql -d gitlabhq_production # Rebuild indexes (see below) |