Created
July 24, 2018 17:14
-
-
Save sodonnell/ac061aaf7e75163ac84f15ef3195222a to your computer and use it in GitHub Desktop.
Amazon RDS doesn't like DEFINER statements from mysqldump when creating views. ^&*$^#*&$
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=[^*]*\*\///' dump2rds.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
...and of course, mysqldump in v5.7 supports the --skip-definer option.
Yet another reason I can't wait to get this old DB migrated/upgraded. Don't even think of mentioning xtrabackup here. I already know. =P