From 534cfbce0b29b570c3df3e443cf1999c4137b6f9 Mon Sep 17 00:00:00 2001 From: GiveMePast <1248298477@qq.com> Date: Tue, 26 May 2026 14:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9E=E6=8E=A5=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E6=95=B0=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BF=9E=E4=B8=8D?= =?UTF-8?q?=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/database.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/config/database.php b/config/database.php index 9d7d8a4..2852dde 100644 --- a/config/database.php +++ b/config/database.php @@ -57,19 +57,18 @@ return [ // 开启字段缓存 'fields_cache' => false, ], + 'remote' => [ + 'type' => 'mysql', + 'hostname' => '112.5.15.136', + 'database' => '112_5_15_136_255', + 'username' => '112_5_15_136_255', + 'password' => 'xz1YX1jswSWzkE4K', + 'hostport' => '3306', + 'charset' => 'utf8mb4', + 'prefix' => '', // 如果有表前缀请填写 + 'break_reconnect' => true, // 远程连接建议开启断线重连 + ], // 更多的数据库配置信息 ], - // 2. 新增:宝塔远程数据库连接 - 'remote' => [ - 'type' => 'mysql', - 'hostname' => '127.0.0.1', - 'database' => '112_5_15_136_255', - 'username' => '112_5_15_136_255', - 'password' => 'xz1YX1jswSWzkE4K', - 'hostport' => '3306', - 'charset' => 'utf8mb4', - 'prefix' => '', // 如果有表前缀请填写 - 'break_reconnect' => true, // 远程连接建议开启断线重连 - ], ];