Signed-off-by: Joas Schilling <coding@schilljs.com>
'exception' => $ex,
'app' => 'mysql.setup',
]);
+ throw $ex;
}
}
* @return array
*/
private function createSpecificUser($username, $connection) {
+ $rootUser = $this->dbUser;
+ $rootPassword = $this->dbPassword;
+
try {
//user already specified in config
$oldUser = $this->config->getValue('dbuser', false);
'exception' => $ex,
'app' => 'mysql.setup',
]);
+ // Restore the original credentials
+ $this->dbUser = $rootUser;
+ $this->dbPassword = $rootPassword;
}
$this->config->setValues([