Bug #15851 | Unlistable directories yield no info from information_schema | ||
---|---|---|---|
Submitted: | 19 Dec 2005 10:31 | Modified: | 26 Jan 2006 2:16 |
Reporter: | Björn Wiberg | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.16 | OS: | Any (IBM AIX 5.3 ML2) |
Assigned to: | Sergei Glukhov | CPU Architecture: | Any |
[19 Dec 2005 10:31]
Björn Wiberg
[19 Dec 2005 13:24]
Valeriy Kravchuk
Thank you for a problem report. In all the installation instructions in the manual it is always stated, that data directory should belong to the user that runs mysqld. Take a look at http://dev.mysql.com/doc/refman/5.0/en/installing-binary.html, for example. Just for the user to be able to read the directories and files in them. When you select from TABLES in the information_schema, the databases are being scanned for tables, hence the problem when there is no read access, or when lost+found is scanned. So, I think it is not a bug. You may call it a documentation request (documentation should explicitely mention that making data directory a mount point is not a good idea) or a feature request (to skip lost+found subdirectory). What do you think?
[19 Dec 2005 16:50]
Björn Wiberg
Hello Valeriy! Thank you for your reply! I agree that this is not the normal case, and not recommended, however, I would prefer to see MySQL skipping the directories it cannot read with a warning instead of incorrectly indicating (in the information_schema view of metadata) that no metadata exists. But, in case that is not possible, mentioning this in the documentation would be an option. (That *all* directories in the data directory *must* be readable by the MySQL user, or metadata reporting will fail.) Wishing you a Merry Christmas and a Happy New Year! Best regards, Björn
[20 Dec 2005 10:20]
Valeriy Kravchuk
So, the documentation should mention in the prominent place, that all directories in the data directory must be readable by the MySQL user, or metadata reporting will fail. The advice not to use any filesystem mount point as a data directory should be also added.
[23 Dec 2005 11:14]
Sergei Golubchik
There's already code in MySQL to skip hidden/system directories on Windows, we can do the same with unreadable directories too
[16 Jan 2006 15:21]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/1147
[24 Jan 2006 11:54]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/1556
[24 Jan 2006 12:07]
Sergei Glukhov
Fixed in 5.0.19
[26 Jan 2006 2:16]
Mike Hillyer
Documented in 5.0.19 changelog: <listitem> <para> The <literal>INFORMATION_SCHEMA</literal> now skips data contained in unlistable/unreadable directories rather than returning an error. (Bug #15851) </para> </listitem> Users are already explicitly instructed to chown -R the data directory and server install directory.
[1 Mar 2006 20:59]
Magnus Blåudd
The testcase for this bug does not work on Windows.
[11 Apr 2006 13:46]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/4800