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.
gzip -d example.sql.gz
It will extract file at the same location where the zip file is.
Thank you! It worked.
ReplyDeleteNot Working!!!!
ReplyDeletePlease explain, where it's not working ?
ReplyDeleteThank you! Very helpful :D
ReplyDeleteThanks worked great!
ReplyDeleteERROR:
ReplyDeleteroot@xyz:/var/www/html/sql# gzip -d abc.sql.gz
gzip: abc.sql.gz: not in gzip format
ERROR:
ReplyDeleteroot@xyz:/var/www/html/sql# gzip -d abc.sql.gz
gzip: abc.sql.gz: not in gzip format
Try gunzip instead of gzip.
ReplyDeletegunzip big-database-dump.sql.gz