mysqldump -f -h [HOST] -u [USER] -p[PASSWORD] [DB_NAME] > db.sql
mysqldump -f -h [HOST] -u [USER] -p[PASSWORD] [DB_NAME] | gzip > db.sql.gz
mysql -h [host] -u [USER] -p[PASSWORD] [DB_NAME] < db.sql
zcat db.sql.gz | mysql -u [USER] -p[PASSWORD] [DB_NAME]