Bug #44666 | Documentation of mysqld_safe is inexact about options | ||
---|---|---|---|
Submitted: | 5 May 2009 11:34 | Modified: | 14 May 2009 19:37 |
Reporter: | Guilhem Bichot | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.1, 6.0 | OS: | Any |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[5 May 2009 11:34]
Guilhem Bichot
[14 May 2009 18:26]
Paul DuBois
Guilhem, so it's like this? Options unknown to mysqld_safe are passed to mysqld if they are specified on the command line, but ignored if they are specified in the [mysqld_safe] group of an option file.
[14 May 2009 19:16]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. Note: This behavior occurs in 4.1/5.0 as well.
[14 May 2009 19:25]
Guilhem Bichot
Hi Paul; from looking at the code I confirm this, and from testing, too. I put this in /etc/mysql/my.cnf (default config file on Ubuntu 8.10): [mysqld_safe] unk-to-mysqld-safe-in-my-cnf Then I ran: sh -x ./scripts/mysqld_safe --unk-to-mysqld-safe-in-cmd-line and this prints that the invokation of mysqld is: nohup ./sql/mysqld --unk-to-mysqld-safe-in-cmd-line (other options like --log-error) So, --unk-to-mysqld-safe-in-cmd-line is passed but unk-to-mysqld-safe-in-my-cnf goes to /dev/null. Using 6.0.
[28 Dec 2009 19:41]
Don Cohen
If you think the doc makes it clear what options belong in what section of my.cnf then I disagree. I saw log-error in [mysqld_safe] and thought that was therefore a reasonable place to put general-log - didn't work. I suggest that the initial version of my.cnf under the [mysqld_safe] section describe what options DO have some effect there, and state that others meant to affect the server belong under [mysqld] BTW, I don't see general-log-file at all in http://dev.mysql.com/doc/refman/5.1/en/server-options.html Also it appears that hyphens and underscores are interchangeable in the config file - is this generally true? Is it mentioned anywhere in the doc? But of course, these are off the original topic.