Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
31359516
Commit
31359516
authored
Nov 30, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'database_doc' of /home/git/repositories/gitlab/gitlabhq
parents
946595a5
72e2fe2c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
config/database.yml.mysql
config/database.yml.mysql
+1
-1
doc/install/databases.md
doc/install/databases.md
+3
-3
No files found.
config/database.yml.mysql
View file @
31359516
...
@@ -7,7 +7,7 @@ production:
...
@@ -7,7 +7,7 @@ production:
reconnect: false
reconnect: false
database: gitlabhq_production
database: gitlabhq_production
pool: 10
pool: 10
username: git
lab
username: git
password: "secure password"
password: "secure password"
# host: localhost
# host: localhost
# socket: /tmp/mysql.sock
# socket: /tmp/mysql.sock
...
...
doc/install/databases.md
View file @
31359516
...
@@ -25,19 +25,19 @@ GitLab supports the following databases:
...
@@ -25,19 +25,19 @@ GitLab supports the following databases:
# Create a user for GitLab
# Create a user for GitLab
# do not type the 'mysql>', this is part of the prompt
# do not type the 'mysql>', this is part of the prompt
# change $password in the command below to a real password you pick
# change $password in the command below to a real password you pick
mysql> CREATE USER 'git
lab
'@'localhost' IDENTIFIED BY '$password';
mysql> CREATE USER 'git'@'localhost' IDENTIFIED BY '$password';
# Create the GitLab production database
# Create the GitLab production database
mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
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.
# 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 'git
lab
'@'localhost';
mysql> GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'git'@'localhost';
# Quit the database session
# Quit the database session
mysql> \q
mysql> \q
# Try connecting to the new database with the new user
# Try connecting to the new database with the new user
sudo -u git -H mysql -u git
lab
-p -D gitlabhq_production
sudo -u git -H mysql -u git -p -D gitlabhq_production
# Type the password you replaced $password with earlier
# Type the password you replaced $password with earlier
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment