To import sql compressed gz database file in the database server using cli. Follow the instructions and import the database file.

Syntax:
[code]zcat ~/Document/database-filename.sql.gz | mysql -h hostname -u user-name -p password target-database -f [/code]

Example 01:
[code]zcat ~/Document/filename.sql.gz | mysql -h localhost -u root -p root database-name -f[/code]

Example 02:
[code]zcat ~/Document/filename.sql.gz | mysql -u root -p root database-name -f[/code]

Thank you!