BACKUP mysqldump -hHOST -uUSER -p DATABASE_NAME > backup.sql Remove definer sed -i 's/\sDEFINER=`[^`]*`@`[^`]*`//' backup.sql Restore mysql -uUSER -p DATABASE_NAME < backup.sql