I was trying to create a dump file from my MySQL database, but when I try it always gives me this error
Operation failed with exitcode 2
You are probably using Amazon RDS, right? You can just get the newer version of mysqldump, v5.6 and use it instead.
Download the portable zip here and extract just the mysql\mysqldump.exe there. http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/1.8.3/
I tried it just now and it worked fine for me.