Skip to content

Instantly share code, notes, and snippets.

@douglascabral
Created June 16, 2016 15:01
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 douglascabral/11a4308f553dd56426b21c63cf5a5d86 to your computer and use it in GitHub Desktop.
Save douglascabral/11a4308f553dd56426b21c63cf5a5d86 to your computer and use it in GitHub Desktop.
MySQL Dump data (No Downtime)
mysqldump <DATABASE> --host=<HOST_IP> \
--user=<USER> \
--password=<PASSWORD> \
--port=3306 \
--single-transaction \
--compress \
--skip-comments \
--skip-add-locks \
--skip-triggers \
--no-create-db \
--no-create-info \
--extended-insert=TRUE > <DESTINATION_FILENAME>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment