diff options
author | Marin Jankovski <marin@gitlab.com> | 2013-11-29 16:46:38 +0100 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2013-11-29 16:46:38 +0100 |
commit | 72e2fe2c8a48fae4ec72d9d25b1742187afa0c92 (patch) | |
tree | 04d0b7385cd36d040008278e5fa9fd9e482af341 | |
parent | 477e9f87e14a8b7a04355453283d49e4e14fcafb (diff) | |
download | gitlab-ce-72e2fe2c8a48fae4ec72d9d25b1742187afa0c92.tar.gz |
Change the mysql user to git from gitlab.
-rw-r--r-- | config/database.yml.mysql | 2 | ||||
-rw-r--r-- | doc/install/databases.md | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/config/database.yml.mysql b/config/database.yml.mysql index e7a9227e41e..55ac088bc1d 100644 --- a/config/database.yml.mysql +++ b/config/database.yml.mysql @@ -7,7 +7,7 @@ production: reconnect: false database: gitlabhq_production pool: 10 - username: gitlab + username: git password: "secure password" # host: localhost # socket: /tmp/mysql.sock diff --git a/doc/install/databases.md b/doc/install/databases.md index be7bc0aad2e..6016e97ede5 100644 --- a/doc/install/databases.md +++ b/doc/install/databases.md @@ -25,19 +25,19 @@ GitLab supports the following databases: # Create a user for GitLab # do not type the 'mysql>', this is part of the prompt # change $password in the command below to a real password you pick - mysql> CREATE USER 'gitlab'@'localhost' IDENTIFIED BY '$password'; + mysql> CREATE USER 'git'@'localhost' IDENTIFIED BY '$password'; # Create the GitLab production database mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`; # Grant the GitLab user necessary permissions on the table. - mysql> GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'gitlab'@'localhost'; + mysql> GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'git'@'localhost'; # Quit the database session mysql> \q # Try connecting to the new database with the new user - sudo -u git -H mysql -u gitlab -p -D gitlabhq_production + sudo -u git -H mysql -u git -p -D gitlabhq_production # Type the password you replaced $password with earlier |