summaryrefslogtreecommitdiff
path: root/innobase/os
diff options
context:
space:
mode:
authorunknown <heikki@donna.mysql.fi>2002-01-04 04:07:31 +0200
committerunknown <heikki@donna.mysql.fi>2002-01-04 04:07:31 +0200
commit601fa58a427d2922c6f7abbee5ae669456890218 (patch)
treef8b086d751fd63f469bca342635df95746880283 /innobase/os
parent3f78cfe8d57f374e0b065b78c50778ad11ede6c8 (diff)
downloadmariadb-git-601fa58a427d2922c6f7abbee5ae669456890218.tar.gz
os0file.c:
Add better error message if access rights are wrong innobase/os/os0file.c: Add better error message if access rights are wrong
Diffstat (limited to 'innobase/os')
-rw-r--r--innobase/os/os0file.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c
index 17656251927..2ae59e26f35 100644
--- a/innobase/os/os0file.c
+++ b/innobase/os/os0file.c
@@ -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"