I'm working on importing some large mysql database backup files that I downloaded from my live server into my local wampserver. The files were compressed in bunzip2 format and have bz2 file extensions. I used to have bunzip setup for my old apache2triad setup, but can't figure out where the bunzip2.exe file needs to go in wampserver.
I obtained the bzip files from http://gnuwin32.sourceforge.net/packages/bzip2.htm, found the bunzip2.exe file in my installation at C:\Program Files (x86)\GnuWin32\bin, but can't find any documentation online of where to set this up for wampserver so that I can execute these mysql commands properly from my command prompt.
D:\wamp\bin\mysql\mysql5.7.11\bin>bunzip2 < D:\path-to-mysql-backup-files\dbbackupfile.sql.bz2 | mysql.exe -u myusername -p mydatabasename 'bunzip2' is not recognized as an internal or external command, operable program or batch file.
Thanks in advance!
EDIT: Figured out the issue thanks to http://windowsitpro.com/powershell/using-bzip2-compression-cmdexe-and-powershell - The bunzip2.exe file I had in my mysql/bin folder needed to be copied to bzip2.exe and bzcat.exe. Once I did this, everything worked fine. Odd that bzip2 doesn't appear to be commonly used with wampserver installations. It's awesome for file compression/decompression, especially when dealing with legacy MySQL data tables that are over 3GB each that contain forum related posts dating back to 2006.