Friday, January 11, 2013

Extract sql.gz file on linux server with ssh command

Simple command to extract sql.gz file on linux server with ssh :

gzip -d example.sql.gz

It will extract file at the same location where the zip file is.


8 comments:

  1. Thank you! It worked.

    ReplyDelete
  2. Please explain, where it's not working ?

    ReplyDelete
  3. ERROR:
    root@xyz:/var/www/html/sql# gzip -d abc.sql.gz
    gzip: abc.sql.gz: not in gzip format

    ReplyDelete
  4. ERROR:
    root@xyz:/var/www/html/sql# gzip -d abc.sql.gz
    gzip: abc.sql.gz: not in gzip format

    ReplyDelete
  5. Try gunzip instead of gzip.

    gunzip big-database-dump.sql.gz

    ReplyDelete