Skip to content

Instantly share code, notes, and snippets.

@jricardo27
Last active August 29, 2015 14:13
Show Gist options
  • Save jricardo27/1cbb32fcf6e07ab9383f to your computer and use it in GitHub Desktop.
Save jricardo27/1cbb32fcf6e07ab9383f to your computer and use it in GitHub Desktop.
MySQL docker (mac)
# 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