restore mysql gz file code example
Example 1: mysql import gzip db
gunzip -c /path/to/file.sql.gz | mysql -u 'root' -p your_database
Example 2: restore backup mysql .gz
gunzip < yourDatabaseName.sql.gz | mysql -u root -p yourDatabaseName
gunzip -c /path/to/file.sql.gz | mysql -u 'root' -p your_database
gunzip < yourDatabaseName.sql.gz | mysql -u root -p yourDatabaseName