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