From 90b865f1c75b589756f0afec698fee29aa97780d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Thu, 15 Aug 2024 01:15:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/think-plugs-static/stc/.env.example | 6 +++--- plugin/think-plugs-static/stc/config/database.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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 分布式(主从服务器)