Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-24 00:44:54 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-24 00:44:54 +0400
commit9b1bef54de2592997089c6de6f40d67311637f92 (patch)
tree3ec26f7b8c743483925fe5b0ad77a15751bfb262 /doc
parentb0c96ec5a38fce838e8589ee3c7559a72a5f14db (diff)
parent8ee3299cc451898b7072383dab7d54601b8bd479 (diff)
Merge branch 'import_postgres_user' into 'master'
Import the database as the `git` user See merge request !762
Diffstat (limited to 'doc')
-rw-r--r--doc/update/mysql_to_postgresql.md4
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)