aboutsummaryrefslogtreecommitdiffstats
path: root/custom/conf
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-05-24 12:15:26 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-05-24 00:15:26 -0400
commitd5a98a29690e13f717fb72e8635fbea57e58f546 (patch)
treeb956c947814221d7a03bebc8516323266e81660e /custom/conf
parent181b7c99eddb373b4415b160dde9109cd4191878 (diff)
downloadgitea-d5a98a29690e13f717fb72e8635fbea57e58f546.tar.gz
gitea-d5a98a29690e13f717fb72e8635fbea57e58f546.zip
Add support of utf8mb4 for mysql (#6992)
Diffstat (limited to 'custom/conf')
-rw-r--r--custom/conf/app.ini.sample3
1 files changed, 3 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample
index 3ce7268d9d..547bc9e935 100644
--- a/custom/conf/app.ini.sample
+++ b/custom/conf/app.ini.sample
@@ -260,6 +260,9 @@ PASSWD =
; For Postgres, either "disable" (default), "require", or "verify-full"
; For MySQL, either "false" (default), "true", or "skip-verify"
SSL_MODE = disable
+; For MySQL only, either "utf8" or "utf8mb4", default is "utf8".
+; NOTICE: for "utf8mb4" you must use MySQL InnoDB > 5.6. Gitea is unable to check this.
+CHARSET = utf8
; For "sqlite3" and "tidb", use an absolute path when you start gitea as service
PATH = data/gitea.db
; For "sqlite3" only. Query timeout