Can't gzip my mysqldump on the command line windows
Asked Answered
C

4

5

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?

Cuneo answered 4/7, 2013 at 13:12 Comment(0)
G
14

I had this same problem myself with WAMP.

All you need to do is:

  1. Download gzip.exe from here: http://www.gzip.org/#exe
  2. Place gzip.exe in your PHP folder
Giuliana answered 2/11, 2013 at 11:50 Comment(0)
D
0

That is telling you that gzip is nowhere your system can find. You can blame however you installed gzip.

Check the value of your $PATH environment (or system) variable. Then install a copy of gzip in one of those directories.

Dammar answered 5/7, 2013 at 19:20 Comment(0)
C
0

Yes, you have to put zip.exe in your wamp folder, like wamp/bin/mysql/[your mysql version]/bin.

Copse answered 30/9, 2015 at 0:55 Comment(0)
T
0

Find or install gzip locally. After that directly in PHP folder create just gzip.bat file, specify the fully qualified path to existing gzip binary file and save. For example:C:\git\bin\gzip.exe

It's not necessary to place gzip.exe in your PHP folder.

Toehold answered 21/8, 2017 at 11:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.