sameersbn / docker-mysql

A Dockerfile that installs a mysql server
MIT License
246 stars 174 forks source link

DB_USER can not connect remotly #17

Open KeremTubluk opened 9 years ago

KeremTubluk commented 9 years ago

There is two problems with this installation for remote access.

1) /etc/mysql/my.conf binds to 127.0.0.1 2) The default user have no host associated with it.

sameersbn commented 9 years ago

1) /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

2) 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