Commit a7a2100f3d3344669d951665dc8e2253451d859f
1 parent
acdb808a
Exists in
spb-stable
and in
3 other branches
Doc syntax highlighting.
Showing
1 changed file
with
26 additions
and
26 deletions
Show diff stats
doc/install/database_mysql.md
... | ... | @@ -4,42 +4,42 @@ We do not recommend using MySQL due to various issues. For example, case [(in)se |
4 | 4 | |
5 | 5 | ## MySQL |
6 | 6 | |
7 | - # Install the database packages | |
8 | - sudo apt-get install -y mysql-server mysql-client libmysqlclient-dev | |
7 | + # Install the database packages | |
8 | + sudo apt-get install -y mysql-server mysql-client libmysqlclient-dev | |
9 | 9 | |
10 | - # Pick a database root password (can be anything), type it and press enter | |
11 | - # Retype the database root password and press enter | |
10 | + # Pick a database root password (can be anything), type it and press enter | |
11 | + # Retype the database root password and press enter | |
12 | 12 | |
13 | - # Secure your installation. | |
14 | - sudo mysql_secure_installation | |
13 | + # Secure your installation. | |
14 | + sudo mysql_secure_installation | |
15 | 15 | |
16 | - # Login to MySQL | |
17 | - mysql -u root -p | |
16 | + # Login to MySQL | |
17 | + mysql -u root -p | |
18 | 18 | |
19 | - # Type the database root password | |
19 | + # Type the database root password | |
20 | 20 | |
21 | - # Create a user for GitLab | |
22 | - # do not type the 'mysql>', this is part of the prompt | |
23 | - # change $password in the command below to a real password you pick | |
24 | - mysql> CREATE USER 'git'@'localhost' IDENTIFIED BY '$password'; | |
21 | + # Create a user for GitLab | |
22 | + # do not type the 'mysql>', this is part of the prompt | |
23 | + # change $password in the command below to a real password you pick | |
24 | + mysql> CREATE USER 'git'@'localhost' IDENTIFIED BY '$password'; | |
25 | 25 | |
26 | - # Create the GitLab production database | |
27 | - mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`; | |
26 | + # Create the GitLab production database | |
27 | + mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`; | |
28 | 28 | |
29 | - # Grant the GitLab user necessary permissions on the table. | |
30 | - mysql> GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'git'@'localhost'; | |
29 | + # Grant the GitLab user necessary permissions on the table. | |
30 | + mysql> GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'git'@'localhost'; | |
31 | 31 | |
32 | - # Quit the database session | |
33 | - mysql> \q | |
32 | + # Quit the database session | |
33 | + mysql> \q | |
34 | 34 | |
35 | - # Try connecting to the new database with the new user | |
36 | - sudo -u git -H mysql -u git -p -D gitlabhq_production | |
35 | + # Try connecting to the new database with the new user | |
36 | + sudo -u git -H mysql -u git -p -D gitlabhq_production | |
37 | 37 | |
38 | - # Type the password you replaced $password with earlier | |
38 | + # Type the password you replaced $password with earlier | |
39 | 39 | |
40 | - # You should now see a 'mysql>' prompt | |
40 | + # You should now see a 'mysql>' prompt | |
41 | 41 | |
42 | - # Quit the database session | |
43 | - mysql> \q | |
42 | + # Quit the database session | |
43 | + mysql> \q | |
44 | 44 | |
45 | - # You are done installing the database and can go back to the rest of the installation. | |
45 | + # You are done installing the database and can go back to the rest of the installation. | ... | ... |