summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-12-16 15:03:23 +0100
committerGitHub <noreply@github.com>2016-12-16 15:03:23 +0100
commit7a52f1dd3f5a92867a957e0eac2f4d476f35b8cc (patch)
treee096312bf91c97ede6052706052225ca0aae2c4d /lib
parent80ab69ba3f9e1b09210e188873fc5ce13366e558 (diff)
parentfd0283ca9750fe672aae0e9c1f160fd2b7b38589 (diff)
downloadnextcloud-server-7a52f1dd3f5a92867a957e0eac2f4d476f35b8cc.tar.gz
nextcloud-server-7a52f1dd3f5a92867a957e0eac2f4d476f35b8cc.zip
Merge pull request #2703 from nextcloud/enoch85-patch-2
[11] Do not connect to database before creating it
Diffstat (limited to 'lib')
-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 d1399c8821c..1a3119807d0 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);