修复执行install命令主机不是127.0.0.1的时候安装失败问题

执行php think install --hostname 172.17.0.1 --password 1234 --force true的时候,假如用的主机名不是127.0.0.1的话,会安装失败,因为DB实例连接到本地了
pull/66/head
kira 2018-06-23 23:51:26 +08:00
parent f4604e1265
commit 03f6ba62d6
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class Install extends Command
// 连接install命令中指定的数据库
$instance = Db::connect([
'type' => 'mysql',
'type' => "{$config['type']}",
'hostname' => "{$hostname}",
'hostport' => "{$hostport}",
'database' => "{$database}",