From 03f6ba62d6d163346b3d3164576139d23bf7118a Mon Sep 17 00:00:00 2001 From: kira <529280602@qq.com> Date: Sat, 23 Jun 2018 23:51:26 +0800 Subject: [PATCH] 修复执行install命令主机不是127.0.0.1的时候安装失败问题 执行php think install --hostname 172.17.0.1 --password 1234 --force true的时候,假如用的主机名不是127.0.0.1的话,会安装失败,因为DB实例连接到本地了 --- application/admin/command/Install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/command/Install.php b/application/admin/command/Install.php index db6ccd0..5c65553 100644 --- a/application/admin/command/Install.php +++ b/application/admin/command/Install.php @@ -59,7 +59,7 @@ class Install extends Command // 连接install命令中指定的数据库 $instance = Db::connect([ - 'type' => 'mysql', + 'type' => "{$config['type']}", 'hostname' => "{$hostname}", 'hostport' => "{$hostport}", 'database' => "{$database}", -- libgit2 0.24.0