Bug 235626
Summary: | mysqld start script prevents processing of option files | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | monty <monty> |
Component: | mysql | Assignee: | Tom Lane <tgl> |
Status: | CLOSED DUPLICATE | QA Contact: | David Lawrence <dkl> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 4.4 | CC: | byte, hhorak |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://dev.mysql.com/doc/refman/4.1/en/option-files.html | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-04-08 23:33:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
monty
2007-04-08 15:01:38 UTC
The restriction to /etc/my.cnf is intentional because the script itself examines that file; if mysql were to look elsewhere then the wrong things would happen. There is a better way proposed in bug #233771, which I have adopted in CVS HEAD but am unsure when or if I will get permission to back-patch into RHEL4. In the meantime, this is effectively a duplicate of that bug and I'm going to mark it as such. (BTW, surely this is not "high severity". There's no functionality loss from just putting the options into /etc/my.cnf, is there?) *** This bug has been marked as a duplicate of 233771 *** The MySQL documentation specifically states that server specific options should be placed in DATADIR/ my.cnf and that /etc/my.cnf be used for global options. Options in DATADIR/my.cnf override those found in /etc/my.cnf The mysql user/group does not have write permission to /etc/my.cnf The recent MySQL security update clobbered the /etc/init.d/mysqld file and broke the MySQL functionality that was controlled by options set in /var/lib/my.cnf The output of running my_print_defaults client mysqld shows that the contents of /var/lib/mysql/my.cnf would be processed by mysqld as expected. The use of [--defaults-file=/etc/my.cnf"] in /etc/init.d/mysqld breaks the expected behavior. |