Skip to content

Instantly share code, notes, and snippets.

@insytes
Last active December 10, 2018 00:01
Show Gist options
  • Save insytes/103154f7738afdd4b736e22f6476fbdd to your computer and use it in GitHub Desktop.
Save insytes/103154f7738afdd4b736e22f6476fbdd to your computer and use it in GitHub Desktop.
mysqldump with complete inserts including column definitions and a WHERE clause
mysqldump -u root -p database table --no-create-info --skip-extended-insert --complete-insert --where="active = 1" > dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment