Browse Source

Merge pull request #2670 from nextcloud/issue-2646-dont-connet-to-database-before-creating-it

Do not connect to database before creating it
tags/v12.0.0beta1
Roeland Jago Douma 7 years ago
parent
commit
3714a6aaf0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/Setup/MySQL.php

+ 1
- 1
lib/private/Setup/MySQL.php 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);


Loading…
Cancel
Save