[MDEV-16879] MariaDB no longer reads /etc/mysql/my.cnf Created: 2018-08-02 Updated: 2018-08-08 Resolved: 2018-08-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration, Platform RedHat, Server |
| Affects Version/s: | 10.0, 10.1, 10.3.8, 10.2, 10.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Michal Schorm | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Fedora, RHEL |
||
| Issue Links: |
|
||||||||
| Description |
|
Hello, MariaDB should search 3 locations for a config files: However it only does 2 now, ommiting /etc/mysql/my.cnf In RHEL there is a MariaDB 5.5 in base, which reads all of the three locations. I'd love to get it either fixed so it will accept all of the 3 locations as usual, or properly reasonably documented, why it was removed. Downstream tracker (RedHat Bugzilla): #598173 Hint from IRC discussion: Fast command to check the mysqld help:
|
| Comments |
| Comment by Alice Sherepa [ 2018-08-02 ] | ||||||||
|
Reproduced on Centos 7.5.1804 docker image, built with yum (sudo yum install MariaDB-server MariaDB-client)
| ||||||||
| Comment by Elena Stepanova [ 2018-08-03 ] | ||||||||
|
The change was made in 10.0, in the scope of
Before that, /etc/ and /etc/mysql were looked into unconditionally; after the change, they are only looked into if DEFAULT_SYSCONFDIR (or INSTALL_SYSCONFDIR) are not specified, and just as the commit comment says, for RPMs it always is. Assigning to serg for deciding on further actions. | ||||||||
| Comment by Sergei Golubchik [ 2018-08-03 ] | ||||||||
|
mschorm, as you can see the patch from I'm a bit confused now. | ||||||||
| Comment by Honza Horak [ 2018-08-03 ] | ||||||||
|
The original idea of the patches in Anyway, since for our distros (Fedora, RHEL, CentOS), the path /etc/mysql/my.cnf was never used, and for non-RPM distros the /etc/mysql/my.cnf still works (according to https://mariadb.com/kb/en/library/configuring-mariadb-with-mycnf/), I don't consider it a real problem for users and we should be fine to keep it.. So, unless somebody disagrees, I'd be fine with closing this issue. | ||||||||
| Comment by Sergei Golubchik [ 2018-08-08 ] | ||||||||
|
The behavior is:
|