Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthree18ti <three18ti@gmail.com>2012-07-30 05:47:28 +0400
committerthree18ti <three18ti@gmail.com>2012-07-30 05:47:28 +0400
commitda77cd224731a8da6c94f65495ec1a7d9f5169c0 (patch)
tree1627617749ac6b469e723c70d8e06044e867e2a1 /doc/installation.md
parent2cc31a380e1d9939a39bab4ff2c9eac65b610161 (diff)
added mysql configuration instructions
Diffstat (limited to 'doc/installation.md')
-rw-r--r--doc/installation.md16
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/installation.md b/doc/installation.md
index cb54663e79e..126fd1b8236 100644
--- a/doc/installation.md
+++ b/doc/installation.md
@@ -153,8 +153,22 @@ Permissions:
# Or
# Mysql
+ # Install MySQL as directed in Step #1
+
+ # Login to MySQL
+ $ mysql -u root -p
+
+ # Create the gitlabhq production database
+ mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
+
+ # Create the MySQL User change $password to a real password
+ mysql> CREATE USER 'gitlab'@'localhost' IDENTIFIED BY '$password';
+
+ # Grant proper permissions to the MySQL User
+ mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'gitlab'@'localhost';
+
+ # Exit MySQL Server and copy the example config, make sure to update username/password in config/database.yml
sudo -u gitlab cp config/database.yml.example config/database.yml
- # Change username/password of config/database.yml to real one
#### Install gems