Created
March 16, 2017 18:57
-
-
Save xurizaemon/33f8a40c5dfe3d9c19afbe0b9fd87f07 to your computer and use it in GitHub Desktop.
MySQL - strip trigger owners from a .sql 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
perl -pi -e 's#\/\*\!5001[7|3].*?`[^\*]*\*\/##g' dumpfile.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment