]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not connect to database before creating it 2670/head
authorJoas Schilling <coding@schilljs.com>
Wed, 14 Dec 2016 12:52:04 +0000 (13:52 +0100)
committerJoas Schilling <coding@schilljs.com>
Wed, 14 Dec 2016 12:52:04 +0000 (13:52 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Setup/MySQL.php

index d1399c8821c05c05635a1a195281f718b45897d5..1a3119807d0c4209302a759a39c34030e6e37f92 100644 (file)
@@ -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);