Merge branch 'import_postgres_user' into 'master'
Import the database as the `git` user See merge request !762
This commit is contained in:
commit
9b1bef54de
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,9 @@ git clone https://github.com/gitlabhq/mysql-postgresql-converter.git
|
||||||
cd mysql-postgresql-converter
|
cd mysql-postgresql-converter
|
||||||
mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root gitlabhq_production
|
mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root gitlabhq_production
|
||||||
python db_converter.py databasename.mysql databasename.psql
|
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)
|
# Rebuild indexes (see below)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue