Skip to content

Commit 2bd5408

Browse files
authored
MySQL 5 FAQ (#15729)
* MySQL 5 Signed-off-by: jolheiser <[email protected]> * Wording
1 parent 47fd156 commit 2bd5408

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/content/doc/help/faq.en-us.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,13 @@ is too small. Gitea requires that the `ROWFORMAT` for its tables is `DYNAMIC`.
324324

325325
If you are receiving an error line containing `Error 1071: Specified key was too long; max key length is 1000 bytes...`
326326
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
327-
you must use InnoDB. You should run `ALTER TABLE table_name ENGINE=InnoDB;` for each table in the database.
327+
you must use InnoDB. You should run `ALTER TABLE table_name ENGINE=InnoDB;` for each table in the database.
328+
If you are using MySQL 5, another possible fix is
329+
```mysql
330+
SET GLOBAL innodb_file_format=Barracuda;
331+
SET GLOBAL innodb_file_per_table=1;
332+
SET GLOBAL innodb_large_prefix=1;
333+
```
328334

329335
## Why Are Emoji Broken On MySQL
330336

0 commit comments

Comments
 (0)