Skip to content

Commit

Permalink
utf8mb4
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Mar 14, 2023
1 parent c802b37 commit 18c3e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Config extends SplBean
protected $database;//数据库
protected $port = 3306;
protected $timeout = 30;
protected $charset = 'utf8';
protected $charset = 'utf8mb4';
protected $strict_type = false; //开启严格模式,返回的字段将自动转为数字类型
protected $fetch_mode = false;//开启fetch模式, 可与pdo一样使用fetch/fetchAll逐行
protected $maxReconnectTimes = 3;
Expand Down

0 comments on commit 18c3e08

Please sign in to comment.