Skip to content

Instantly share code, notes, and snippets.

@gbelot2003
Created February 19, 2019 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbelot2003/abcfa74fa77cace00f1610093dbc642c to your computer and use it in GitHub Desktop.
Save gbelot2003/abcfa74fa77cace00f1610093dbc642c to your computer and use it in GitHub Desktop.
fix laradock mysql connection
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