From b92745e9eff3481be698f4754cfb35b551fa8109 Mon Sep 17 00:00:00 2001 From: kevand900 Date: Fri, 14 Apr 2017 15:19:04 -0700 Subject: [PATCH] Fixing bug where $this->options->dbHost was not being parsed correctly when installing database. --- base/DatabaseInstaller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/DatabaseInstaller.php b/base/DatabaseInstaller.php index 72deacc..4d52923 100644 --- a/base/DatabaseInstaller.php +++ b/base/DatabaseInstaller.php @@ -153,7 +153,7 @@ private function createMySQLDatabase(): void { STDERR, '%s', "Can't connect to database ". - "(mysql -h $this->options->dbHost -p$db -u $db $db). This can be ". + "(mysql -h {$this->options->dbHost} -p$db -u $db $db). This can be ". "fixed for you.\n", ); $conn = $this->getRootConnection(); @@ -180,7 +180,7 @@ private function createMySQLDatabase(): void { $conn, ); mysql_query( - "GRANT ALL PRIVILEGES ON $edb.* TO '$edb'@'$this->options->dbHost' ". + "GRANT ALL PRIVILEGES ON $edb.* TO '$edb'@'{$this->options->dbHost}' ". "IDENTIFIED BY '$edb'", $conn, );