how to extract a .mysql.gz file on mac code example Example: mysql import gz zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database