mirror of
https://github.com/nextcloud/server.git
synced 2026-04-02 15:45:38 -04:00
Do not connect to database before creating it
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
cd1929382f
commit
7c061a4e06
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue