summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2021-05-04 23:39:09 -0500
committerGitHub <noreply@github.com>2021-05-05 05:39:09 +0100
commit2bd5408e5fa3f8a180401f89a8c75061a44d96eb (patch)
tree7c67f26c0a429f0c8a3b6f036c565f5cde0909bb /docs
parent47fd1569361a4cb474aa760cefa76c1158c5d944 (diff)
downloadgitea-2bd5408e5fa3f8a180401f89a8c75061a44d96eb.tar.gz
gitea-2bd5408e5fa3f8a180401f89a8c75061a44d96eb.zip
MySQL 5 FAQ (#15729)
* MySQL 5 Signed-off-by: jolheiser <john.olheiser@gmail.com> * Wording
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/help/faq.en-us.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md
index b3cf1aa0e8..1ae881d52d 100644
--- a/docs/content/doc/help/faq.en-us.md
+++ b/docs/content/doc/help/faq.en-us.md
@@ -324,7 +324,13 @@ is too small. Gitea requires that the `ROWFORMAT` for its tables is `DYNAMIC`.
If you are receiving an error line containing `Error 1071: Specified key was too long; max key length is 1000 bytes...`
then you are attempting to run Gitea on tables which use the ISAM engine. While this may have worked by chance in previous versions of Gitea, it has never been officially supported and
-you must use InnoDB. You should run `ALTER TABLE table_name ENGINE=InnoDB;` for each table in the database.
+you must use InnoDB. You should run `ALTER TABLE table_name ENGINE=InnoDB;` for each table in the database.
+If you are using MySQL 5, another possible fix is
+```mysql
+SET GLOBAL innodb_file_format=Barracuda;
+SET GLOBAL innodb_file_per_table=1;
+SET GLOBAL innodb_large_prefix=1;
+```
## Why Are Emoji Broken On MySQL