Merge pull request #18044 from nextcloud/backport/18009/stable16
[stable16] Fix installing with MySQL 8.0.4+
This commit is contained in:
commit
4cac0e893c
|
@ -100,9 +100,9 @@ class MySQL extends AbstractDatabase {
|
|||
$password = $this->dbPassword;
|
||||
// we need to create 2 accounts, one for global use and one for local user. if we don't specify the local one,
|
||||
// the anonymous user would take precedence when there is one.
|
||||
$query = "CREATE USER '$name'@'localhost' IDENTIFIED BY '$password'";
|
||||
$query = "CREATE USER '$name'@'localhost' IDENTIFIED WITH mysql_native_password BY '$password'";
|
||||
$connection->executeUpdate($query);
|
||||
$query = "CREATE USER '$name'@'%' IDENTIFIED BY '$password'";
|
||||
$query = "CREATE USER '$name'@'%' IDENTIFIED WITH mysql_native_password BY '$password'";
|
||||
$connection->executeUpdate($query);
|
||||
}
|
||||
catch (\Exception $ex){
|
||||
|
|
Loading…
Reference in New Issue