Created
June 16, 2017 09:14
-
-
Save olssonm/0bf7f7deefd38737bd522e3ccea1b0de to your computer and use it in GitHub Desktop.
Remove definer constraints on a a MySQL-dump in macOS
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
sed -i '' 's/DEFINER=`[^`][^`]*`@`[^`][^`]*`//g' filename.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment