summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-12-14 19:50:16 +0100
committerGitHub <noreply@github.com>2016-12-14 19:50:16 +0100
commit3714a6aaf0b565808bd1ec7f8552196447402f58 (patch)
treedab8831a87fea1537a5a643d280d669700b621dc
parent237791e3157946cf64e2838ce822bd32189e71a5 (diff)
parent7c061a4e0659d92cfaeb6d41f657da5d1ff9ccb5 (diff)
downloadnextcloud-server-3714a6aaf0b565808bd1ec7f8552196447402f58.tar.gz
nextcloud-server-3714a6aaf0b565808bd1ec7f8552196447402f58.zip
Merge pull request #2670 from nextcloud/issue-2646-dont-connet-to-database-before-creating-it
Do not connect to database before creating it
-rw-r--r--lib/private/Setup/MySQL.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php
index dd88e2ccac6..bafb3866b76 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);