Bug #35418 defaults-extra-file displayed incorrectly in mysqld --help --verbose output
Submitted: 18 Mar 2008 22:19 Modified: 26 Apr 2011 0:29
Reporter: Kolbe Kegel Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: General Severity:S3 (Non-critical)
Version:5.0.56 OS:Any
Assigned to: Hery Ramilison CPU Architecture:Any

[18 Mar 2008 22:19] Kolbe Kegel
Description:
The argument to --defaults-extra-file is displayed incorrectly in mysqld --help --verbose output.

How to repeat:
touch ./test.cnf
mysqld --defaults-extra-file=./test.cnf --help --verbose | grep cnf

/etc/my.cnf /etc/my.cnf ./test.cnf/my.cnf ~/.my.cnf /usr/local/mysql/etc/my.cnf 

As can be seen above, "./test.cnf", as supplied to the --defaults-extra-file option, has had "/my.cnf" appended to it.

The incorrectly named file is not *read*; this is simply a display problem.

Though this seems to be purely cosmetic, I worry that it could be a manifestation of underlying problems or could cause problems if any utilities (or persons!) attempt to parse the output of mysqld --help --verbose.

Suggested fix:
The list of option files consulted by mysqld should not contain any spurious or incorrect data.
[26 Apr 2011 0:29] Hery Ramilison
fix implemented