Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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.