修改连接远程数数据库连不上
This commit is contained in:
@@ -57,19 +57,18 @@ return [
|
|||||||
// 开启字段缓存
|
// 开启字段缓存
|
||||||
'fields_cache' => false,
|
'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, // 远程连接建议开启断线重连
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user