docker-mysql
docker-mysql copied to clipboard
DB_USER can not connect remotly
There is two problems with this installation for remote access.
- /etc/mysql/my.conf binds to 127.0.0.1
- The default user have no host associated with it.
- /etc/mysql/my.conf binds to 127.0.0.1
This is not true, see https://github.com/sameersbn/docker-mysql/blob/master/entrypoint.sh#L153
- The default user have no host associated with it.
You can create a remote root using the DB_REMOTE_ROOT_NAME and DB_REMOTE_ROOT_HOST parameters https://github.com/sameersbn/docker-mysql#creating-remote-user-with-privileged-access