I\'m new to Docker
and pulled the mysql
from the docker hub using following command
docker pull mysql
Get in the docker container using the following command
docker exec -it mysql bash
You can then easily connect to MySQL, by executing the following command
mysql -uroot -p
If you are trying to connect from the host machine, then you will have to install the mysql
client.
On mac, the command is as follows
brew install mysql