Commit 498a4e6b0c8b7cc9266f71dd3337669a9442934d
1 parent
c3f088d2
Exists in
spb-stable
and in
3 other branches
Database doc changes to address #2412 and #6451.
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
doc/install/database_mysql.md
| ... | ... | @@ -6,6 +6,9 @@ We do not recommend using MySQL due to various issues. For example, case [(in)se |
| 6 | 6 | |
| 7 | 7 | # Install the database packages |
| 8 | 8 | sudo apt-get install -y mysql-server mysql-client libmysqlclient-dev |
| 9 | + | |
| 10 | + # Ensure you have MySQL version 5.5.14 or later | |
| 11 | + mysql --version | |
| 9 | 12 | |
| 10 | 13 | # Pick a database root password (can be anything), type it and press enter |
| 11 | 14 | # Retype the database root password and press enter |
| ... | ... | @@ -23,6 +26,10 @@ We do not recommend using MySQL due to various issues. For example, case [(in)se |
| 23 | 26 | # change $password in the command below to a real password you pick |
| 24 | 27 | mysql> CREATE USER 'git'@'localhost' IDENTIFIED BY '$password'; |
| 25 | 28 | |
| 29 | + # Ensure you can use the InnoDB engine which is necessary to support long indexes. | |
| 30 | + # If this fails, check your MySQL config files (e.g. `/etc/mysql/*.cnf`, `/etc/mysql/conf.d/*`) for the setting "innodb = off" | |
| 31 | + mysql> SET storage_engine=INNODB; | |
| 32 | + | |
| 26 | 33 | # Create the GitLab production database |
| 27 | 34 | mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`; |
| 28 | 35 | ... | ... |