Code snippet to compress MySQLdump and remove the definer.
mysqldump -uuser -p database | sed -e "s/DEFINER=[^*]*\*/\*/" | gzip > database.sql.gz
cat database.sql | sed -e "s/DEFINER=[^*]*\*/\*/" > database_nodefiner.sql
The post gzip Compress and Remove Definer on MySQLDump appeared first on BryMayor.com.