21.4. The perror Utilityperror is a command-line utility that is included with MySQL distributions. The purpose of the perror program is to show you information about the error codes used by MySQL when operating system-level errors occur. You can use perror in situations when a statement results in a message such as the following being returned to you: mysql> CREATE TABLE CountryCopy SELECT * FROM Country; ERROR 1 (HY000): Can't create/write to file './world/CountryCopy.frm' (Errcode: 13) This error message indicates that MySQL cannot write to the file CountryCopy.frm, but does not report the reason. It might be due to a full disk, a filesystem permissions problem, or some other error. To find out, run the perror program with an argument of the number given following Errcode in the preceding error message. perror displays a message indicating that the source of the problem is that someone has incorrectly set the filesystem permissions for the current database: shell> perror 13 Error code 13: Permission denied |