更新
This commit is contained in:
parent
cc5a9d43da
commit
4c5820e431
@ -7,15 +7,15 @@ return [
|
||||
// 数据库类型
|
||||
'type' => 'mysql',
|
||||
// 服务器地址
|
||||
'hostname' => '127.0.0.1',
|
||||
'hostname' => getenv('DB_HOST'),
|
||||
// 数据库名
|
||||
'database' => 'webman_admin',
|
||||
'database' => getenv('DB_NAME'),
|
||||
// 数据库用户名
|
||||
'username' => 'root',
|
||||
'username' =>getenv('DB_USER'),
|
||||
// 数据库密码
|
||||
'password' => '123456',
|
||||
'password' => getenv('DB_PASSWORD'),
|
||||
// 数据库连接端口
|
||||
'hostport' => '3306',
|
||||
'hostport' => getenv('DB_PORT'),
|
||||
// 数据库连接参数
|
||||
'params' => [
|
||||
// 连接超时3秒
|
||||
@ -24,7 +24,7 @@ return [
|
||||
// 数据库编码默认采用utf8
|
||||
'charset' => 'utf8',
|
||||
// 数据库表前缀
|
||||
'prefix' => 'wa_',
|
||||
'prefix' => getenv('DB_PREFIX'),
|
||||
// 断线重连
|
||||
'break_reconnect' => true,
|
||||
// 关闭SQL监听日志
|
||||
|
@ -4,14 +4,14 @@ return [
|
||||
'connections' => [
|
||||
'mysql' => [
|
||||
'driver' => 'mysql',
|
||||
'host' => '127.0.0.1',
|
||||
'port' => '3306',
|
||||
'database' => 'webman_admin',
|
||||
'username' => 'root',
|
||||
'password' => '123456',
|
||||
'host' => getenv('DB_HOST'),
|
||||
'port' => getenv('DB_PORT'),
|
||||
'database' => getenv('DB_NAME'),
|
||||
'username' => getenv('DB_USER'),
|
||||
'password' => getenv('DB_PASSWORD'),
|
||||
'charset' => 'utf8mb4',
|
||||
'collation' => 'utf8mb4_general_ci',
|
||||
'prefix' => '',
|
||||
'prefix' => getenv('DB_PREFIX'),
|
||||
'strict' => true,
|
||||
'engine' => null,
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user