Hi,
My migration from 1.19 to 1.20.1 has failed because of Mysql database collation. All my tables have been using utf8mb4_general_ci for ages, which looks correct according to Gitea’s doc ( Database Preparation | Gitea Documentation ): " Create database with UTF-8 charset and collation. Make sure to use utf8mb4
charset […] When in doubt, use either unicode_ci
or general_ci
."
Yet, when starting Gitea 1.20.1, I now have:
.../setting/database.go:75:loadDBSetting() [E] Deprecated database mysql charset utf8 support, please use utf8mb4 and convert utf8 database to utf8mb4 by "gitea convert".
[...]
routers/common/db.go:34:InitDBEngine() [E] ORM engine initialization attempt #1/10 failed. Error: Error 1115 (42000): Unknown character set: 'utf8mb4_general_ci
If I launch gitea convert
with v1.19, it does nothing. If I do it with 1.20.1, it fails with the same error.
Should I convert my database and, if so, how? Help would be appreciated!