Skip to content

Commit

Permalink
fix: 更新系统数据库配置文件,同步到 Static 插件
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Sep 8, 2024
1 parent 19028ae commit 35ec1b9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

return [
// 默认使用的数据库连接配置
'default' => 'mysql',
'default' => env('type.db_type', 'sqlite'),
// 自定义时间查询规则
'time_query_rule' => [],
// 自动写入时间戳字段
Expand All @@ -29,19 +29,19 @@
// 数据库类型
'type' => 'mysql',
// 服务器地址
'hostname' => env('mysql.hostname', '106.55.25.32'),
'hostname' => env('db.mysql_hostname', '127.0.0.1'),
// 数据库名
'database' => env('mysql.database', 'admin_dv'),
'database' => env('db.mysql_database', 'thinkadmin'),
// 用户名
'username' => env('mysql.username', 'admin_dv'),
'username' => env('db.mysql_username', 'root'),
// 密码
'password' => env('mysql.password', '3twr7kNZLXeSGtc7'),
'password' => env('db.mysql_password', ''),
// 端口
'hostport' => env('mysql.hostport', '3306'),
'hostport' => env('db.mysql_hostport', '3306'),
// 数据库连接参数
'params' => [],
// 数据库编码默认采用 utf8
'charset' => 'utf8mb4',
'charset' => env('mysql.charset', 'utf8mb4'),
// 数据库表前缀
'prefix' => env('mysql.prefix', ''),
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
Expand Down

0 comments on commit 35ec1b9

Please sign in to comment.