Last active
August 29, 2015 14:13
-
-
Save jricardo27/1cbb32fcf6e07ab9383f to your computer and use it in GitHub Desktop.
MySQL docker (mac)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://registry.hub.docker.com/_/mysql/ | |
docker pull mysql | |
docker run --name my_mysql -p 0.0.0.0:3306:3306 -e MYSQL_ROOT_PASSWORD=qwerty123root -d mysql | |
echo "Connect to the database" | |
# This requires boot2docker on mac | |
echo "mysql -h$(boot2docker ip) -P3306 -uroot" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment