Bug #84605 `innodb_data_home_dir` has inconsistent handling, or documentation
| Submitted: | 23 Jan 2017 8:36 | Modified: | 7 Feb 2017 20:31 |
|---|---|---|---|
| Reporter: | Saverio Miroddi | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
| Version: | OS: | Any | |
| Assigned to: | CPU Architecture: | Any |
[23 Jan 2017 8:36]
Saverio Miroddi
[23 Jan 2017 14:56]
MySQL Verification Team
Hi! I was involved when this parameter was introduced and there is no doubt in my mind that it should have a slash. However, it is true that this is not properly documented. Hence, this is a verified documentation bug.
[7 Feb 2017 20:31]
Daniel Price
Posted by developer: The following content was updated to indicate that a trailing slash is required when specifying a value for innodb_data_home_dir. https://dev.mysql.com/doc/refman/5.7/en/innodb-init-startup-configuration.html https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_data_home_dir The change should appear online within 24 hours. Thank you for the bug report.
[29 Aug 2019 14:15]
Iwo P
Hello, I do not agree the statements here and in bug https://bugs.mysql.com/bug.php?id=84488 are correct. Pathname (3.271) In the context of POSIX.1-2017 (...) It has optional beginning <slash> characters followed by zero or more filenames separated by <slash> characters. A pathname can *optionally* contain one or more trailing <slash> characters. (Reference: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html) Moreover, the proper way of checking if a path is a directory would be to stat it and then use `S_ISDIR' marco on `st_mode'.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.