Merge pull request #2703 from nextcloud/enoch85-patch-2

[11] Do not connect to database before creating it
This commit is contained in:
Roeland Jago Douma 2016-12-16 15:03:23 +01:00 committed by GitHub
commit 7a52f1dd3f
1 changed files with 1 additions and 1 deletions

View 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);