Error importing MySQL RDS or Aurora DB with functions or views

If you're receiving the following error message:

Access denied; you need (at least one of) the SUPER privilege(s) for this operation

You need to remove DEFINER= This can be done manually or using the SED command below

sed 's/\sDEFINER=[^]+@[^]+//' -i dumpfile.sql

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center