From 7c061a4e0659d92cfaeb6d41f657da5d1ff9ccb5 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 14 Dec 2016 13:52:04 +0100 Subject: [PATCH] Do not connect to database before creating it Signed-off-by: Joas Schilling --- lib/private/Setup/MySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php index d1399c8821..1a3119807d 100644 --- a/lib/private/Setup/MySQL.php +++ b/lib/private/Setup/MySQL.php @@ -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);