diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-12-14 19:50:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-14 19:50:16 +0100 |
commit | 3714a6aaf0b565808bd1ec7f8552196447402f58 (patch) | |
tree | dab8831a87fea1537a5a643d280d669700b621dc /lib/private/Setup | |
parent | 237791e3157946cf64e2838ce822bd32189e71a5 (diff) | |
parent | 7c061a4e0659d92cfaeb6d41f657da5d1ff9ccb5 (diff) | |
download | nextcloud-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
Diffstat (limited to 'lib/private/Setup')
-rw-r--r-- | lib/private/Setup/MySQL.php | 2 |
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); |