Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I use

Mysqldump –u root –ppassword databasename | 7z a -si -t7z outputfile.sql.7z -mx9

To backup my Mysql 5.1 database on my windows vista system.


How can I restore the database without first having to expand the 7zip file?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I am not that familar with the 7zip command line but I suspect you would do something like this.

7z e -so outputfile.sql.7z | mysql -u username -p databasename
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.