File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ private function createDBUser($connection) {
100100 $ password = $ this ->dbPassword ;
101101 // we need to create 2 accounts, one for global use and one for local user. if we don't specify the local one,
102102 // the anonymous user would take precedence when there is one.
103- $ query = "CREATE USER ' $ name'@'localhost' IDENTIFIED BY ' $ password' " ;
103+ $ query = "CREATE USER ' $ name'@'localhost' IDENTIFIED WITH mysql_native_password BY ' $ password' " ;
104104 $ connection ->executeUpdate ($ query );
105- $ query = "CREATE USER ' $ name'@'%' IDENTIFIED BY ' $ password' " ;
105+ $ query = "CREATE USER ' $ name'@'%' IDENTIFIED WITH mysql_native_password BY ' $ password' " ;
106106 $ connection ->executeUpdate ($ query );
107107 }
108108 catch (\Exception $ ex ){
You can’t perform that action at this time.
0 commit comments