diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-21 18:49:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-21 10:49:25 +0000 |
commit | ce46834b938eb687152a680669ada95a26304178 (patch) | |
tree | 7a234a4673d41bb0f374670a02013b62f1e5d851 /docs/content/doc/administration | |
parent | dfd19fa38c9ee004c5d7e73f51af5981adcb5e6d (diff) | |
download | gitea-ce46834b938eb687152a680669ada95a26304178.tar.gz gitea-ce46834b938eb687152a680669ada95a26304178.zip |
Remove "CHARSET" config option for MySQL, always use "utf8mb4" (#25413)
In modern days, there is no reason to make users set "charset" anymore.
Close #25378
## :warning: BREAKING
The key `[database].CHARSET` was removed completely as every newer
(>10years) MySQL database supports `utf8mb4` already.
There is a (deliberately) undocumented new fallback option if anyone
still needs to use it, but we don't recommend using it as it simply
causes problems.
Diffstat (limited to 'docs/content/doc/administration')
-rw-r--r-- | docs/content/doc/administration/config-cheat-sheet.en-us.md | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/docs/content/doc/administration/config-cheat-sheet.en-us.md b/docs/content/doc/administration/config-cheat-sheet.en-us.md index 64a3565554..77cb784637 100644 --- a/docs/content/doc/administration/config-cheat-sheet.en-us.md +++ b/docs/content/doc/administration/config-cheat-sheet.en-us.md @@ -443,7 +443,6 @@ The following configuration set `Content-Type: application/vnd.android.package-a - `SQLITE_TIMEOUT`: **500**: Query timeout for SQLite3 only. - `SQLITE_JOURNAL_MODE`: **""**: Change journal mode for SQlite3. Can be used to enable [WAL mode](https://www.sqlite.org/wal.html) when high load causes write congestion. See [SQlite3 docs](https://www.sqlite.org/pragma.html#pragma_journal_mode) for possible values. Defaults to the default for the database file, often DELETE. - `ITERATE_BUFFER_SIZE`: **50**: Internal buffer size for iterating. -- `CHARSET`: **utf8mb4**: For MySQL only, either "utf8" or "utf8mb4". NOTICE: for "utf8mb4" you must use MySQL InnoDB > 5.6. Gitea is unable to check this. - `PATH`: **data/gitea.db**: For SQLite3 only, the database file path. - `LOG_SQL`: **true**: Log the executed SQL. - `DB_RETRIES`: **10**: How many ORM init / DB connect attempts allowed. |