diff options
author | Joas Schilling <coding@schilljs.com> | 2016-12-14 13:52:04 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-12-14 13:52:04 +0100 |
commit | 7c061a4e0659d92cfaeb6d41f657da5d1ff9ccb5 (patch) | |
tree | e1f496c353f5f65347eb075665b878c3560b68f1 /lib/private/Setup/MySQL.php | |
parent | cd1929382ff38f321df59b17962016496b22104c (diff) | |
download | nextcloud-server-7c061a4e0659d92cfaeb6d41f657da5d1ff9ccb5.tar.gz nextcloud-server-7c061a4e0659d92cfaeb6d41f657da5d1ff9ccb5.zip |
Do not connect to database before creating it
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Setup/MySQL.php')
-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 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); |