Do not connect to database before creating it

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-12-14 13:52:04 +01:00
parent ed7b18799f
commit fd0283ca97
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class MySQL extends AbstractDatabase {
public function setupDatabase($username) {
//check if the database user has admin right
$connection = $this->connect();
$connection = $this->connect(['dbname' => null]);
$this->createSpecificUser($username, $connection);