Bug #80866 mysqld_safe should not search $MY_BASEDIR_VERSION/var as DATADIR
Submitted: 28 Mar 2016 10:30 Modified: 15 Feb 2017 1:25
Reporter: tsubasa tanaka (OCA) Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:5.5.48, 5.6.29, 5.7.11 OS:CentOS (6.6)
Assigned to: CPU Architecture:Any

[28 Mar 2016 10:30] tsubasa tanaka
This relates Bug#80857.
MySQL 5.5 and later do not use /usr/local/var as DATADIR (See Bug#80857).

But mysqld_safe still searches $MY_BASEDIR_VERSION/var as DATADIR, with a comment of "try where the source installs put it"
mysqld_safe shouldn't search there as DATADIR.

How to repeat:
See https://github.com/mysql/mysql-server/blob/67d52e7c7a1a23424e39273cbb6f5f9d56fda8d1/script...
[29 Mar 2016 5:33] Umesh Shastry
Hello Tanaka-San,

Thank you for the report.

[14 Feb 2017 8:42] Terje Røsten
Posted by developer:
mysqld_safe no longer search for  $MY_BASEDIR_VERSION/var as datadir.

(Change was done with fix of Bug#83937/Bug#25144379).
[15 Feb 2017 1:25] Paul Dubois
Posted by developer:
Noted in 5.5.55, 5.6.36, 5.7.18, 8.0.1 changelogs.

When attempting to locate the data directory, mysqld_safe incorrectly
considered $MY_BASEDIR_VERSION/var as one of the possible locations.