Skip to content

Instantly share code, notes, and snippets.

@rjmacarthy
Last active August 11, 2016 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjmacarthy/c5d3328da1429ce95117ba5e3c34fb9c to your computer and use it in GitHub Desktop.
Save rjmacarthy/c5d3328da1429ce95117ba5e3c34fb9c to your computer and use it in GitHub Desktop.
docker mysql
FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO %i
# Install
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=password -d mysql:tag
# Go to bash
docker exec -it some-mysql bash
# mysql
mysql -u root -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment