Skip to content

Instantly share code, notes, and snippets.

@Rahulsharma0810
Forked from spalladino/mysql-docker.sh
Last active April 15, 2020 11:39
Show Gist options
  • Save Rahulsharma0810/a644c1e43736bd14184747aece5f5f31 to your computer and use it in GitHub Desktop.
Save Rahulsharma0810/a644c1e43736bd14184747aece5f5f31 to your computer and use it in GitHub Desktop.
Backup a mysql database from a running Docker mysql container
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment