Bug #29107 to take effect, --datadir must be specified only after --basedir in option files
Submitted: 14 Jun 2007 14:14 Modified: 14 Jul 2007 14:43
Reporter: Patricia Cuesta Rivalta Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Locking Severity:S3 (Non-critical)
Version:5.0.18 OS:Solaris
Assigned to: CPU Architecture:Any

[14 Jun 2007 14:14] Patricia Cuesta Rivalta
Description:
In support-files/mysql.server script, parsing function will setup datadir=$basedir/data  when parses --basedir

How to repeat:
Define /etc/my.cnf or any other option file with

[mysqld]
datadir=/data/mysql/
basedir=<install dir>

Suggested fix:
test -z $datadir && datadir=$basedir/data
[14 Jun 2007 14:43] Valeriy Kravchuk
Thank you for a problem report. Please, check with a newer version, 5.0.41, and inform about the results.
[14 Jul 2007 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".