Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Fixing bug where $this->options->dbHost was not being parsed correctly when installing database. #82

Merged
merged 1 commit into from
Apr 18, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions base/DatabaseInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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,
);
Expand Down