The return code of the MySQL Enterprise Backup (mysqlbackup) process is 0 if the backup or restore run succeeds. If the run fails for any reason, the return code is set to the OS error code.
If mysqlbackup fails, because an operating system call fails, mysqlbackup usually displays the operating systems error code along with a detailed error message.
On Linux and other Unix-like systems, the operating system error
codes are POSIX error codes. Those POSIX error codes that are
possible with mysqlbackup are shown in
Table 7.1, “OS Errors for Linux and Other Unix-Like Systems”. A complete list of all POSIX
errors is available in the file
/usr/include/errno.h on your system.
Table 7.1. OS Errors for Linux and Other Unix-Like Systems
Operation not permitted
No such file or directory
No such process
Interrupted system call
No such device or address
Bad file number
Out of memory
Device or resource busy
No such device
Not a directory
Too many open files
File too large
No space left on device
Read-only file system
File name too long
No data available
File descriptor in bad state
On Microsoft Windows, mysqlbackup uses Win32 API calls. The Windows System Error codes possible with mysqlbackup are listed in Table 7.2, “OS Errors for Windows Systems”. A complete list of all Windows System errors is available at http://msdn2.microsoft.com/en-us/library/ms681381(VS.85).aspx.
Table 7.2. OS Errors for Windows Systems
The operation completed successfully.
The system cannot find the file specified.
The system cannot find the path specified.
The system cannot open the file.
Access is denied.
Not enough storage is available to process this command.
Not enough storage is available to complete this operation.
The system cannot find the drive specified.
The media is write protected.
The system cannot find the device specified.
The device is not ready.
The drive cannot locate a specific area or track on the disk.
The system cannot write to the specified device.
The system cannot read from the specified device.
A device attached to the system is not functioning.
The disk is full.
The network path was not found.
The specified network resource or device is no longer available.
The file exists.