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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
57365b86
Commit
57365b86
authored
Jul 05, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing privileges to MySQL database
[ci skip]
parent
ba9ef7f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
doc/install/database_mysql.md
doc/install/database_mysql.md
+1
-1
doc/update/8.8-to-8.9.md
doc/update/8.8-to-8.9.md
+20
-4
No files found.
doc/install/database_mysql.md
View file @
57365b86
...
@@ -36,7 +36,7 @@ We do not recommend using MySQL due to various issues. For example, case [(in)se
...
@@ -36,7 +36,7 @@ We do not recommend using MySQL due to various issues. For example, case [(in)se
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 database
# Grant the GitLab user necessary permissions on the database
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, CREATE TEMPORARY TABLES, DROP, INDEX, ALTER, LOCK TABLES ON `gitlabhq_production`.* TO 'git'@'localhost';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, CREATE TEMPORARY TABLES, DROP, INDEX, ALTER, LOCK TABLES
, REFERENCES
ON `gitlabhq_production`.* TO 'git'@'localhost';
# Quit the database session
# Quit the database session
mysql> \q
mysql> \q
...
...
doc/update/8.8-to-8.9.md
View file @
57365b86
...
@@ -62,7 +62,23 @@ sudo -u git -H git checkout v0.7.5
...
@@ -62,7 +62,23 @@ sudo -u git -H git checkout v0.7.5
sudo
-u
git
-H
make
sudo
-u
git
-H
make
```
```
### 6. Install libs, migrations, etc.
### 6. Update MySQL permissions
If you are using MySQL you need to grant the GitLab user the necessary
permissions on the database:
```
bash
# Login to MySQL
mysql
-u
root
-p
# Grant the GitLab user the REFERENCES permission on the database
GRANT REFERENCES ON
`
gitlabhq_production
`
.
*
TO
'git'
@
'localhost'
;
# Quit the database session
mysql>
\q
```
### 7. Install libs, migrations, etc.
```
bash
```
bash
cd
/home/git/gitlab
cd
/home/git/gitlab
...
@@ -84,7 +100,7 @@ sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS
...
@@ -84,7 +100,7 @@ sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS
```
```
###
7
. Update configuration files
###
8
. Update configuration files
#### New configuration options for `gitlab.yml`
#### New configuration options for `gitlab.yml`
...
@@ -141,12 +157,12 @@ Ensure you're still up-to-date with the latest init script changes:
...
@@ -141,12 +157,12 @@ Ensure you're still up-to-date with the latest init script changes:
sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab
sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab
###
8
. Start application
###
9
. Start application
sudo service gitlab start
sudo service gitlab start
sudo service nginx restart
sudo service nginx restart
###
9
. Check application status
###
10
. Check application status
Check if GitLab and its environment are configured correctly:
Check if GitLab and its environment are configured correctly:
...
...
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