Skip to content

Instantly share code, notes, and snippets.

@Maes95
Last active November 26, 2019 11:28
Show Gist options
  • Save Maes95/082a2df799564efe7b0cf663a68bcc34 to your computer and use it in GitHub Desktop.
Save Maes95/082a2df799564efe7b0cf663a68bcc34 to your computer and use it in GitHub Desktop.
Run MySQL on Docker
# START MySQL
docker run --name master-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=pass -e MYSQL_DATABASE=test -d mysql:5.7
# This command create a mysql
# -> Available in locahost:3306
# -> With a 'root' user with pass 'pass'
# -> With a default database schema 'test'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment