config step

This commit is contained in:
Manuel Raynaud
2013-09-17 14:22:32 +02:00
parent edd84fb622
commit 35299dd6be
4 changed files with 120 additions and 4 deletions

View File

@@ -96,11 +96,11 @@ class CheckDatabaseConnection extends BaseInstall
public function exec()
{
$dsn = "mysql:host=%s";
$dsn = "mysql:host=%s;port=%s";
try {
$this->connection = new \PDO(
sprintf($dsn, $this->host),
sprintf($dsn, $this->host, $this->port),
$this->user,
$this->password
);