fix: 适配 MySQL 8.4 与 Linux 类加载

This commit is contained in:
biss committed 2026-10-04 20:13:51 +08:00
1 parent dff7cd7fa9
commit 30d63c855c
4 files changed
+8 -6

No files matched your search

+5 -3
View File
@@ -24,7 +24,7 @@ return [
// 服务器地址
'hostname' => Env::get('database.hostname', '127.0.0.1'),
// 数据库名
'database' => Env::get('database.database', '`'),
'database' => Env::get('database.database', 'cj'),
// 用户名
'username' => Env::get('database.username', 'root'),
// 密码
@@ -33,8 +33,10 @@ return [
'hostport' => Env::get('database.hostport', '3306'),
// 数据库连接参数
'params' => [],
// 数据库编码默认采用utf8
'charset' => Env::get('database.charset', 'utf8'),
// MySQL 8.4 uses utf8mb4 for complete Unicode support. The PDO
// DSN receives this value directly, so no server-side SET NAMES
// workaround is necessary.
'charset' => Env::get('database.charset', 'utf8mb4'),
// 数据库表前缀
'prefix' => Env::get('database.prefix', 'cj_'),