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, // 远程连接建议开启断线重连 - ], ];