diff --git a/config/database.php b/config/database.php index 5875bc52..f36b4fc7 100644 --- a/config/database.php +++ b/config/database.php @@ -59,8 +59,8 @@ return [ 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', 'prefix' => env('DB_PREFIX', ''), 'strict' => false, 'engine' => null, diff --git a/resources/misc/changelogs/en/5.0.0.md b/resources/misc/changelogs/en/5.0.0.md index f00708d1..7e36016f 100644 --- a/resources/misc/changelogs/en/5.0.0.md +++ b/resources/misc/changelogs/en/5.0.0.md @@ -31,6 +31,7 @@ - Optimized performance of validating player name. - Optimized performance of invoking texture previewer (skinview3d). - Changed method of retrieving IP. +- Use `utf8mb4` encoding in MySQL/MariaDB. ## Fixed diff --git a/resources/misc/changelogs/zh_CN/5.0.0.md b/resources/misc/changelogs/zh_CN/5.0.0.md index 3bcdaba4..7298c91c 100644 --- a/resources/misc/changelogs/zh_CN/5.0.0.md +++ b/resources/misc/changelogs/zh_CN/5.0.0.md @@ -31,6 +31,7 @@ - 优化角色名校验的性能 - 优化调用材质预览器(skinview3d)的性能 - 修改获取 IP 地址的方法 +- MySQL/MariaDB 使用 `utf8mb4` 编码 ## 修复