Skip to content

Instantly share code, notes, and snippets.

@neo0910
Last active December 5, 2019 18:02
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 neo0910/4266e28f83bfac09cc711bc0ea2518cc to your computer and use it in GitHub Desktop.
Save neo0910/4266e28f83bfac09cc711bc0ea2518cc to your computer and use it in GitHub Desktop.
// set password
docker run -d --name yourcustomname -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret -e MYSQL_DATABASE=mySchema mysql:5.7
// or without password
docker run -d --name yourcustomname -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -e MYSQL_DATABASE=mySchema mysql:5.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment