summaryrefslogtreecommitdiff
path: root/innobase/os
diff options
context:
space:
mode:
authorheikki@donna.mysql.fi <>2002-01-04 04:07:31 +0200
committerheikki@donna.mysql.fi <>2002-01-04 04:07:31 +0200
commit9f5e564fc34fe1bf173333a249bef7a96a4c6ba7 (patch)
treef8b086d751fd63f469bca342635df95746880283 /innobase/os
parent1a360124932ed3b7f612b1ad6bf915967efa6e40 (diff)
downloadmariadb-git-9f5e564fc34fe1bf173333a249bef7a96a4c6ba7.tar.gz
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"