gunzip -c dbname.sql.gz | mysql dbname -u username -p
Note:
-c
means write output to stdout.