is this right?
mysql -uroot -ppassword mydb < myfile.sql.gz
You have to follow below steps:
First check Mysql service should be running.
Then if you have compressed file, decompress it first.