diff options
author | unknown <heikki@donna.mysql.fi> | 2002-01-04 04:07:31 +0200 |
---|---|---|
committer | unknown <heikki@donna.mysql.fi> | 2002-01-04 04:07:31 +0200 |
commit | 29395436065076a835cbb8fa3556a7cb3bfdaf8b (patch) | |
tree | f8b086d751fd63f469bca342635df95746880283 /innobase | |
parent | 04b45b178edf4a7890127c4575c5cc9a4365ab34 (diff) | |
download | mariadb-git-29395436065076a835cbb8fa3556a7cb3bfdaf8b.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')
-rw-r--r-- | innobase/os/os0file.c | 9 |
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" |