Created
February 13, 2012 10:36
-
-
Save rohannog/1815881 to your computer and use it in GitHub Desktop.
mysqldump with the AUTO_INCREMENT values removed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/stnc/mysqldump.exe-and-autoincrement-fix