From bb487f1df160289e5163d4d60ff8fadd9aa34b75 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Thu, 16 Apr 2026 17:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .example.env | 2 +- config/database.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.example.env b/.example.env index efb6163c..7785adfd 100644 --- a/.example.env +++ b/.example.env @@ -1 +1 @@ - app_debug = false [database] type = mysql hostname = likeshop-mysql database = localhost_likeshopb2b2c username = root password = root hostport = 3306 charset = utf8mb4 debug = true prefix = 'ls_' [project] env_name = 多商户后台 admin_name = 多商户后台 file_domain = "www.likeshopb2b2c.localhost" ws_domain = wss://127.0.0.1 \ No newline at end of file + app_debug = false [database] type = mysql hostname = localhost database = chaz_shop username = chaz_shop password = GHbeMeh5yykrZMY4 hostport = 3306 charset = utf8mb4 debug = true prefix = 'ls_' [project] env_name = 多商户后台 admin_name = 多商户后台 file_domain = "www.likeshopb2b2c.localhost" ws_domain = wss://127.0.0.1 \ No newline at end of file diff --git a/config/database.php b/config/database.php index 2ac39c27..829fa054 100644 --- a/config/database.php +++ b/config/database.php @@ -21,13 +21,13 @@ return [ // 数据库类型 'type' => env('database.type', 'mysql'), // 服务器地址 - 'hostname' => env('database.hostname', 'likeshop-mysql'), + 'hostname' => env('database.hostname', 'localhost'), // 数据库名 - 'database' => env('database.database', 'localhost_likeshopb2b2c'), + 'database' => env('database.database', 'chaz_shop'), // 用户名 - 'username' => env('database.username', 'root'), + 'username' => env('database.username', 'chaz_shop'), // 密码 - 'password' => env('database.password', 'root'), + 'password' => env('database.password', 'GHbeMeh5yykrZMY4'), // 端口 'hostport' => env('database.hostport', '3306'), // 数据库连接参数