support utf8mb4

This commit is contained in:
Pig Fang 2020-01-04 10:30:05 +08:00
parent 1c5cb7fdba
commit 70d8614d84
3 changed files with 4 additions and 2 deletions
config
resources/misc/changelogs

View File

@ -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,

View File

@ -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

View File

@ -31,6 +31,7 @@
- 优化角色名校验的性能
- 优化调用材质预览器skinview3d的性能
- 修改获取 IP 地址的方法
- MySQL/MariaDB 使用 `utf8mb4` 编码
## 修复