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
In Workbench look for Preferences: Edit -> Preferences -> Administrator -> Path to the mysqldump Tool. Browse your MySQL folder inside the bin folder and look for mysqldump.exe.