Merge pull request #2702 from nextcloud/enoch85-patch-1
[10] Do not connect to database before creating it
This commit is contained in:
commit
c8d391a6a7
|
@ -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…
Reference in New Issue