Created
June 1, 2012 14:03
-
-
Save jrickerd/2852383 to your computer and use it in GitHub Desktop.
Strip autoincrement from dump
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 -d -R --single-transaction <db> | sed 's/ AUTO_INCREMENT=[0-9]*\b//' | gzip > out.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment