diff --git a/plugin/think-plugs-static/stc/.env.example b/plugin/think-plugs-static/stc/.env.example index 21f0116f2..81c8614a0 100644 --- a/plugin/think-plugs-static/stc/.env.example +++ b/plugin/think-plugs-static/stc/.env.example @@ -1,9 +1,9 @@ [mysql] hostname=127.0.0.1 -database=admin_dv -username=root -password=root hostport=3306 +database=thinkadmin +username=root +password= prefix= [redis] diff --git a/plugin/think-plugs-static/stc/config/database.php b/plugin/think-plugs-static/stc/config/database.php index 8ca84051f..c9b936942 100644 --- a/plugin/think-plugs-static/stc/config/database.php +++ b/plugin/think-plugs-static/stc/config/database.php @@ -33,15 +33,15 @@ return [ // 数据库名 'database' => env('mysql.database', 'thinkadmin'), // 用户名 - 'username' => env('mysql.username', 'thinkadmin'), + 'username' => env('mysql.username', 'root'), // 密码 - 'password' => env('mysql.password', 'thinkadmin'), + 'password' => env('mysql.password', ''), // 端口 'hostport' => env('mysql.hostport', '3306'), // 数据库连接参数 'params' => [], // 数据库编码默认采用 utf8 - 'charset' => 'utf8mb4', + 'charset' => env('mysql.charset', 'utf8mb4'), // 数据库表前缀 'prefix' => env('mysql.prefix', ''), // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)