Skip to content
Snippets Groups Projects
Unverified Commit 77d814d3 authored by Joas Schilling's avatar Joas Schilling Committed by Roeland Jago Douma
Browse files

Fix installing with MySQL 8.0.4+

parent 2b262656
No related branches found
No related tags found
No related merge requests found
...@@ -100,9 +100,9 @@ class MySQL extends AbstractDatabase { ...@@ -100,9 +100,9 @@ class MySQL extends AbstractDatabase {
$password = $this->dbPassword; $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, // 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. // 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); $connection->executeUpdate($query);
$query = "CREATE USER '$name'@'%' IDENTIFIED BY '$password'"; $query = "CREATE USER '$name'@'%' IDENTIFIED WITH mysql_native_password BY '$password'";
$connection->executeUpdate($query); $connection->executeUpdate($query);
} }
catch (\Exception $ex){ catch (\Exception $ex){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment