Created
March 30, 2019 08:45
-
-
Save anatoliyfedorenko/836704a2bf0cc7eb642f3a62562c545c to your computer and use it in GitHub Desktop.
Create db dump with all id primary keys NULL
This file contains hidden or 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 --complete-insert --host=localhost --user=root --password=root --no-create-info database | sed -e "s/([0-9]*,/(NULL,/gi" > database.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment