mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
os0file.c:
Add better error message if access rights are wrong innobase/os/os0file.c: Add better error message if access rights are wrong
This commit is contained in:
parent
04b45b178e
commit
2939543606
1 changed files with 9 additions and 0 deletions
|
@ -178,6 +178,11 @@ os_file_get_last_error(void)
|
|||
"InnoDB: The error means the system cannot find the path specified.\n"
|
||||
"InnoDB: In installation you must create directories yourself, InnoDB\n"
|
||||
"InnoDB: does not create them.\n");
|
||||
} else if (err == ERROR_ACCESS_DENIED) {
|
||||
fprintf(stderr,
|
||||
"InnoDB: The error means mysqld does not have the access rights to\n"
|
||||
"InnoDB: the directory. It may also be you have created a subdirectory\n"
|
||||
"InnoDB: of the same name as a data file.\n");
|
||||
} else {
|
||||
fprintf(stderr,
|
||||
"InnoDB: Look from section 13.2 at http://www.innodb.com/ibman.html\n"
|
||||
|
@ -208,6 +213,10 @@ os_file_get_last_error(void)
|
|||
"InnoDB: The error means the system cannot find the path specified.\n"
|
||||
"InnoDB: In installation you must create directories yourself, InnoDB\n"
|
||||
"InnoDB: does not create them.\n");
|
||||
} else if (err == EACCES) {
|
||||
fprintf(stderr,
|
||||
"InnoDB: The error means mysqld does not have the access rights to\n"
|
||||
"InnoDB: the directory.\n");
|
||||
} else {
|
||||
fprintf(stderr,
|
||||
"InnoDB: Look from section 13.2 at http://www.innodb.com/ibman.html\n"
|
||||
|
|
Loading…
Reference in a new issue