I had the need to do a backup and compress a mysql database, so this is how I did it.
mysqldump --opt databasename -uUsername -p | gzip > databasename.sql.gz
I had the need to do a backup and compress a mysql database, so this is how I did it.
mysqldump --opt databasename -uUsername -p | gzip > databasename.sql.gz