Passing -p 3306:3306 you just creating a port forwarding from host machine to guest one.
Looks like you've not configured access for root user from other hosts rather than default localhost. I suspect the Docker for Mac 'migration' during installation (copying existing Docker stuff into the new VM) may keep some old data (from the old MySQL containers) that is causing issues, but don't know how to proceed. It used to work with Docker Toolbox where I launched by docker run \Īnd connected to host 192.168.99.100.
MySQL said: Access denied for user (using password: YES) Got Unable to connect to host 127.0.0.1 because access was denied.ĭouble-check your username and password and ensure that access from your current location is permitted. The launch seems to be fine.Then I tried to connect to this server from Sequel Pro, via 'Standard' way, host 127.0.0.1, root, 1234. (I think the removal and installation is clean.)Įssentially launching a MySQL server container like this: docker run -e MYSQL_ROOT_PASSWORD=1234 -d mysql:5.7.13 Just removed that and installed Docker for Mac beta.