mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-08 04:48:10 +08:00
fix: 更新初始化数据库配置
This commit is contained in:
parent
af7ef9b2cb
commit
355615660e
@ -17,6 +17,7 @@
|
|||||||
"plugin": {
|
"plugin": {
|
||||||
"copy": {
|
"copy": {
|
||||||
"stc/think": "!think",
|
"stc/think": "!think",
|
||||||
|
"stc/.env.example": ".env.example",
|
||||||
"stc/public/index.php": "!public/index.php",
|
"stc/public/index.php": "!public/index.php",
|
||||||
"stc/public/static/plugs": "!public/static/plugs",
|
"stc/public/static/plugs": "!public/static/plugs",
|
||||||
"stc/public/static/theme": "!public/static/theme",
|
"stc/public/static/theme": "!public/static/theme",
|
||||||
|
|||||||
@ -40,10 +40,10 @@ return [
|
|||||||
'hostport' => env('db.mysql_hostport', '3306'),
|
'hostport' => env('db.mysql_hostport', '3306'),
|
||||||
// 数据库连接参数
|
// 数据库连接参数
|
||||||
'params' => [],
|
'params' => [],
|
||||||
// 数据库编码默认采用 utf8
|
|
||||||
'charset' => env('mysql.charset', 'utf8mb4'),
|
|
||||||
// 数据库表前缀
|
// 数据库表前缀
|
||||||
'prefix' => env('mysql.prefix', ''),
|
'prefix' => env('db.mysql_prefix', ''),
|
||||||
|
// 数据库编码默认采用 utf8mb4
|
||||||
|
'charset' => env('db.mysql_charset', 'utf8mb4'),
|
||||||
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
|
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
|
||||||
'deploy' => 0,
|
'deploy' => 0,
|
||||||
// 数据库读写是否分离 主从式有效
|
// 数据库读写是否分离 主从式有效
|
||||||
@ -62,11 +62,12 @@ return [
|
|||||||
'fields_cache' => isOnline(),
|
'fields_cache' => isOnline(),
|
||||||
],
|
],
|
||||||
'sqlite' => [
|
'sqlite' => [
|
||||||
'charset' => 'utf8',
|
|
||||||
// 数据库类型
|
// 数据库类型
|
||||||
'type' => 'sqlite',
|
'type' => 'sqlite',
|
||||||
// 数据库文件
|
// 数据库文件
|
||||||
'database' => syspath('database/sqlite.db'),
|
'database' => syspath('database/sqlite.db'),
|
||||||
|
// 数据库编码默认采用 utf8
|
||||||
|
'charset' => 'utf8',
|
||||||
// 监听执行日志
|
// 监听执行日志
|
||||||
'trigger_sql' => true,
|
'trigger_sql' => true,
|
||||||
// 其他参数字段
|
// 其他参数字段
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user