Can't gzip my mysqldump on the command line windows
12,983
I had this same problem myself with WAMP.
All you need to do is:
- Download gzip.exe from here: http://www.gzip.org/#exe
- Place gzip.exe in your PHP folder
Related videos on Youtube
Author by
Richard Skinner
Updated on June 05, 2022Comments
-
Richard Skinner almost 2 years
I'm trying to make a back up of my MySQL db and zip the file.
Every time I try to run this command...
C:\wamp\bin\mysql\mysql5.5.24\bin\mysqldump.exe -u usernam -ppassword db_name | gzip > sites\www.site.com-local\backups\backup-date.sql.gz
All I get is an error saying "'gzip' is not recognized as an internal or external command, operable program or batch file'
I've used the following resources hoping they would help but have done nothing
http://www.zigpress.com/2009/04/09/enabling-gzip-on-wamp/ http://dnhome.wordpress.com/2011/10/06/apache-wampserver-enable-compression-gzip/ http://www.dewebbouwmeester.nl/enabling-gzip-on-wamp/
All say the same thing but nothing happens.
Could someone please shine some light on what i am doing wrong?