Commit da77cd224731a8da6c94f65495ec1a7d9f5169c0
1 parent
2cc31a38
Exists in
master
and in
4 other branches
added mysql configuration instructions
Showing
1 changed file
with
15 additions
and
1 deletions
Show diff stats
doc/installation.md
... | ... | @@ -153,8 +153,22 @@ Permissions: |
153 | 153 | |
154 | 154 | # Or |
155 | 155 | # Mysql |
156 | + # Install MySQL as directed in Step #1 | |
157 | + | |
158 | + # Login to MySQL | |
159 | + $ mysql -u root -p | |
160 | + | |
161 | + # Create the gitlabhq production database | |
162 | + mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`; | |
163 | + | |
164 | + # Create the MySQL User change $password to a real password | |
165 | + mysql> CREATE USER 'gitlab'@'localhost' IDENTIFIED BY '$password'; | |
166 | + | |
167 | + # Grant proper permissions to the MySQL User | |
168 | + mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'gitlab'@'localhost'; | |
169 | + | |
170 | + # Exit MySQL Server and copy the example config, make sure to update username/password in config/database.yml | |
156 | 171 | sudo -u gitlab cp config/database.yml.example config/database.yml |
157 | - # Change username/password of config/database.yml to real one | |
158 | 172 | |
159 | 173 | #### Install gems |
160 | 174 | ... | ... |