is this right?
mysql -uroot -ppassword mydb < myfile.sql.gz
For Generating dbName.sql.gz
mysqldump -u -p | gzip > ~/mysqlBackup/dbName_`date +%Y%m%d%H%M`.sql.gz
For Loading dbName.sql.gz
zcat ~/mysqlBackup/<.SQL.GZ file> | mysql -u -p