Do not connect to database before creating it

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/2670/head
Joas Schilling 9 years ago
parent cd1929382f
commit 7c061a4e06
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
  1. 2
      lib/private/Setup/MySQL.php

@ -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