-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Access denied for user 'root'@'192.168.99.1' #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, Yes, this is for upstream's Docker image, which now restricts root to localhost by default. You can override by sending in the environment variable MYSQL_ROOT_HOST. Setting it to "%" will give the old behavior (noted in the readme at https://hub.docker.com/r/mysql/mysql-server/) |
To explain it a bit more. If you pass in a value for the MYSQL_ROOT_HOST variable, a second root account will be created for the value you used, so you'll have 'root'@'localhost' and 'root'@'${MYSQL_ROOT_HOST}' |
Thanks, I'll give that a try :) |
That worked, thanks :) |
Good to hear! |
Hi,
Been using the mysql/mysql-server docker image for a while :)
However just recently setup a new machine and when it pulled down the latest image and now getting the following error when attempt to connect to it remotely:
Access denied for user 'root'@'192.168.99.1'
Also can't connect to it remotely using mysql workbench. So has root access now been restricted to the localhost ?
The docker image that doesn't work has the following when using docker inspect:
The docker image that does work has the following when using docker inspect:
Just wanted to know if there is a change in approach or a bug..
Thanks
The text was updated successfully, but these errors were encountered: