Skip to content

Instantly share code, notes, and snippets.

@rohannog
Created February 13, 2012 10:36
Show Gist options
  • Save rohannog/1815881 to your computer and use it in GitHub Desktop.
Save rohannog/1815881 to your computer and use it in GitHub Desktop.
mysqldump with the AUTO_INCREMENT values removed
mysqldump -u root <DB-name-here> -d --skip-add-drop-database --skip-add-drop-table | sed -e 's/AUTO_INCREMENT=[[:digit:]]* //' > <sql-output-file.sql>
@stnc
Copy link

stnc commented Jul 26, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment