Commit 3bfbea37e9a0cca64bf67e0a8a8ce3ceb9b9db55
1 parent
92591b63
Exists in
spb-stable
and in
2 other branches
Indicate when to stop/start GitLab
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
doc/update/mysql_to_postgresql.md
@@ -11,11 +11,17 @@ second part of this documents explains the procedure to do this. | @@ -11,11 +11,17 @@ second part of this documents explains the procedure to do this. | ||
11 | Use this if you are keeping GitLab on the same server. | 11 | Use this if you are keeping GitLab on the same server. |
12 | 12 | ||
13 | ``` | 13 | ``` |
14 | +sudo service gitlab stop | ||
15 | + | ||
16 | +# Update /home/git/gitlab/config/database.yml | ||
17 | + | ||
14 | git clone https://github.com/lanyrd/mysql-postgresql-converter.git | 18 | git clone https://github.com/lanyrd/mysql-postgresql-converter.git |
15 | cd mysql-postgresql-converter | 19 | cd mysql-postgresql-converter |
16 | mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root gitlabhq_production | 20 | mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root gitlabhq_production |
17 | python db_converter.py databasename.mysql databasename.psql | 21 | python db_converter.py databasename.mysql databasename.psql |
18 | psql -f databasename.psql -d gitlabhq_production | 22 | psql -f databasename.psql -d gitlabhq_production |
23 | + | ||
24 | +sudo service gitlab start | ||
19 | ``` | 25 | ``` |
20 | 26 | ||
21 | ## Converting a GitLab backup file from MySQL to Postgres | 27 | ## Converting a GitLab backup file from MySQL to Postgres |