Created
February 19, 2019 23:51
-
-
Save gbelot2003/abcfa74fa77cace00f1610093dbc642c to your computer and use it in GitHub Desktop.
fix laradock mysql connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This issue still exists, but I don't know if this is PMA or something else, anyway as workaround: | |
``` | |
$ docker-compose exec mysql bash | |
$ mysql -u root -p | |
``` | |
You should be able to login as 'root' or your other password. | |
Execute the following commands: | |
``` | |
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; | |
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root'; | |
ALTER USER 'default'@'%' IDENTIFIED WITH mysql_native_password BY 'secret'; | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment