summaryrefslogtreecommitdiff
path: root/doc/install/database_mysql.md
diff options
context:
space:
mode:
authorFranz-Robert van Vugt <f.vanvugt@zeno.nu>2014-03-27 21:40:33 +0100
committerFranz-Robert van Vugt <f.vanvugt@zeno.nu>2014-03-27 21:40:33 +0100
commitcfc4a2dbe3652180c1d08d5d9e154e28cbb340fb (patch)
treef9af595878a2789be45c612e26ced8c9f7c592ad /doc/install/database_mysql.md
parentf03820ebf2f28ddb26e422322219a815d8cd3749 (diff)
parentfc5ac1451dcfda7cf53d536db79b552b29849276 (diff)
downloadgitlab-ce-cfc4a2dbe3652180c1d08d5d9e154e28cbb340fb.tar.gz
Merge branch 'master' of https://github.com/gitlabhq/gitlabhq into patch-1
Diffstat (limited to 'doc/install/database_mysql.md')
-rw-r--r--doc/install/database_mysql.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/install/database_mysql.md b/doc/install/database_mysql.md
index 4cf9b94c1a0..bf8183729e7 100644
--- a/doc/install/database_mysql.md
+++ b/doc/install/database_mysql.md
@@ -6,6 +6,9 @@ We do not recommend using MySQL due to various issues. For example, case [(in)se
# Install the database packages
sudo apt-get install -y mysql-server mysql-client libmysqlclient-dev
+
+ # Ensure you have MySQL version 5.5.14 or later
+ mysql --version
# Pick a database root password (can be anything), type it and press enter
# 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
# change $password in the command below to a real password you pick
mysql> CREATE USER 'git'@'localhost' IDENTIFIED BY '$password';
+ # Ensure you can use the InnoDB engine which is necessary to support long indexes.
+ # If this fails, check your MySQL config files (e.g. `/etc/mysql/*.cnf`, `/etc/mysql/conf.d/*`) for the setting "innodb = off"
+ mysql> SET storage_engine=INNODB;
+
# Create the GitLab production database
mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;