is this right?
mysql -uroot -ppassword mydb < myfile.sql.gz
Use the following command:
gunzip < databasefile.sql.gz | mysql -u root -p dbname