BigW Consortium Gitlab

Commit 9b1bef54 by Dmitriy Zaporozhets

Merge branch 'import_postgres_user' into 'master'

Import the database as the `git` user See merge request !762
parents b0c96ec5 8ee3299c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment