command to compress sql .gz code example Example: mysql import gz zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database