修改连接远程数数据库连不上
This commit is contained in:
@@ -57,13 +57,9 @@ return [
|
||||
// 开启字段缓存
|
||||
'fields_cache' => false,
|
||||
],
|
||||
|
||||
// 更多的数据库配置信息
|
||||
],
|
||||
// 2. 新增:宝塔远程数据库连接
|
||||
'remote' => [
|
||||
'type' => 'mysql',
|
||||
'hostname' => '127.0.0.1',
|
||||
'hostname' => '112.5.15.136',
|
||||
'database' => '112_5_15_136_255',
|
||||
'username' => '112_5_15_136_255',
|
||||
'password' => 'xz1YX1jswSWzkE4K',
|
||||
@@ -72,4 +68,7 @@ return [
|
||||
'prefix' => '', // 如果有表前缀请填写
|
||||
'break_reconnect' => true, // 远程连接建议开启断线重连
|
||||
],
|
||||
|
||||
// 更多的数据库配置信息
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user