diff --git a/.example.env b/.example.env index 7785adfd..8b5ee3c3 100644 --- a/.example.env +++ b/.example.env @@ -1 +1 @@ - 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 + app_debug = false [database] type = mysql hostname = 120.26.233.97 database = chaz_shop username = chaz_shop password = kpWXXweTJh8pyA67 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 829fa054..0ad79f16 100644 --- a/config/database.php +++ b/config/database.php @@ -21,13 +21,13 @@ return [ // 数据库类型 'type' => env('database.type', 'mysql'), // 服务器地址 - 'hostname' => env('database.hostname', 'localhost'), + 'hostname' => env('database.hostname', '120.26.233.97'), // 数据库名 'database' => env('database.database', 'chaz_shop'), // 用户名 'username' => env('database.username', 'chaz_shop'), // 密码 - 'password' => env('database.password', 'GHbeMeh5yykrZMY4'), + 'password' => env('database.password', 'kpWXXweTJh8pyA67'), // 端口 'hostport' => env('database.hostport', '3306'), // 数据库连接参数