zcat /Users/Marko/Downloads/file.sql.gz | mysql -u 'root' -p'password' your_database
just drop this line in your linux or mac and fill data you need to fill and wait :) or this for gz files
gunzip < /Users/Marko/Downloads/mydb.sql.gz | mysql -u root -p mydb
or for ZIP files
unzip -p /Users/Marko/Downloads/mydb.sql.gz | mysql -u root -p dbname