summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-01-18 15:52:26 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-01-18 15:53:08 +0100
commit06e21d2e49bb6ca01947ab46c1f35d25c1082a0b (patch)
treeb205a8ccdd758d92c8beb6efe9ecf16c5df85e95
parentdf8601691b78df0dc9791fec5fa5c3727732aadb (diff)
downloadgitlab-ce-06e21d2e49bb6ca01947ab46c1f35d25c1082a0b.tar.gz
Add information about PostgreSQL<>MySQL 'text' type differences into to installation docs
-rw-r--r--doc/install/database_mysql.md19
-rw-r--r--doc/update/README.md1
2 files changed, 20 insertions, 0 deletions
diff --git a/doc/install/database_mysql.md b/doc/install/database_mysql.md
index 513ad69ec26..4a2c699129d 100644
--- a/doc/install/database_mysql.md
+++ b/doc/install/database_mysql.md
@@ -52,3 +52,22 @@ We do not recommend using MySQL due to various issues. For example, case [(in)se
mysql> \q
# You are done installing the database and can go back to the rest of the installation.
+
+## MySQL strings limits
+
+After installation or upgrade is done, remember to run `add_limits_mysql` rake task:
+
+```
+bundle exec rake add_limits_mysql
+```
+
+The `text` type in MySQL have different size limit than `text` type in PostgreSQL. In MySQL `text` columns are limited
+to ~65kB, where in PostgreSQL `text` columns are limited up to ~1GB!
+
+`add_limits_mysql` rake task converts some important `text` columns in GitLab database to `longtext` which can persist
+up to 4GB characters (may be less if the value contains multibyte characters).
+
+Details can be found in [PostgreSQL manual][postgres-text-type] and in [MySQL manual][mysql-text-types].
+
+[postgres-text-type]: http://www.postgresql.org/docs/9.1/static/datatype-character.html
+[mysql-text-types]: http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html
diff --git a/doc/update/README.md b/doc/update/README.md
index 0472537eeb5..46aec4885e2 100644
--- a/doc/update/README.md
+++ b/doc/update/README.md
@@ -14,3 +14,4 @@ Depending on the installation method and your GitLab version, there are multiple
## Miscellaneous
- [MySQL to PostgreSQL](mysql_to_postgresql.md) guides you through migrating your database from MySQL to PostgreSQL.
+- [MySQL installation guide](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md) contains additional informations about configuring GitLab to work with MySQL database.