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