Skip to content

Instantly share code, notes, and snippets.

@fighterleslie
Created November 14, 2020 10:03
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 fighterleslie/8c4de3683f5ec5c9bdd232ce7222a1d6 to your computer and use it in GitHub Desktop.
Save fighterleslie/8c4de3683f5ec5c9bdd232ce7222a1d6 to your computer and use it in GitHub Desktop.
mysqldump example
# only dump data, no table structure
echo "Begin"
mysqldump --skip-opt --no-create-db --no-create-info --compact --quick --extended-insert --insert-ignore -h xx -u xx --password=xx database_name table_name > /mnt/dump.sql
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment