Skip to content

Instantly share code, notes, and snippets.

@xurizaemon
Created March 16, 2017 18:57
Show Gist options
  • Save xurizaemon/33f8a40c5dfe3d9c19afbe0b9fd87f07 to your computer and use it in GitHub Desktop.
Save xurizaemon/33f8a40c5dfe3d9c19afbe0b9fd87f07 to your computer and use it in GitHub Desktop.
MySQL - strip trigger owners from a .sql dump
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