36 lines
1.4 KiB
PHP
Executable File
36 lines
1.4 KiB
PHP
Executable File
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | ThinkAdmin
|
||
// +----------------------------------------------------------------------
|
||
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
|
||
// +----------------------------------------------------------------------
|
||
// | 官方网站: http://demo.thinkadmin.top
|
||
// +----------------------------------------------------------------------
|
||
// | 开源协议 ( https://mit-license.org )
|
||
// +----------------------------------------------------------------------
|
||
// | gitee 开源项目:https://gitee.com/zoujingli/ThinkAdmin
|
||
// | github开源项目:https://github.com/zoujingli/ThinkAdmin
|
||
// +----------------------------------------------------------------------
|
||
return [
|
||
// 数据库调试模式
|
||
'debug' => env('database.debug', true),
|
||
// 数据库类型
|
||
'type' => 'mysql',
|
||
// 服务器地址
|
||
'hostname' => env('database.hostname', '127.0.0.1'),
|
||
// 数据库名
|
||
'database' => env('database.database', '0302-2'),
|
||
// 用户名
|
||
'username' => env('database.username', '0302-2'),
|
||
// 密码
|
||
'password' => env('database.password', '0302-2'),
|
||
// 编码
|
||
'charset' => env('database.charset', 'utf8mb4'),
|
||
// 端口
|
||
'hostport' => env('database.hostport', '3306'),
|
||
// 主从
|
||
'deploy' => 0,
|
||
// 分离
|
||
'rw_separate' => false,
|
||
];
|