I'm running mysqldump
and mysql
commands from a batch script on Windows to make a backup of a database and restore it.
How could I check in the batch script whether these commands executed correctly or end up with error ? In case of error, I would like to know what the error is.
Thanks !