提交 9b1bef54 编写于 作者: D Dmitriy Zaporozhets

Merge branch 'import_postgres_user' into 'master'

Import the database as the `git` user

See merge request !762
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册