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
If you're on a linux machine, this is provided by the mysql-client package. Installing that fixed the problem for me.
mysql-client