[MDEV-26444] defaults-group-suffix not working for /etc/my.cnf.d mysqld configuration files Created: 2021-08-20 Updated: 2021-08-24 Resolved: 2021-08-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.5.9 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Oleg Sladkoff | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS Linux release 8.4.2105 |
||
| Description |
|
Hi, I created a /etc/my.cnf.d/instance1.cnf :
And I also created an instance2 in /etc/my.cnf
It looks like only instance 2 is working as expected ( the one in /etc/my.cnf ) I tried :
and
It looks like /usr/bin/my_print_defaults is picking up the /etc/my.cnf.d/mariadb-server.cnf [mysqld] section , because when I removed it from the file it works. I assume /usr/bin/my_print_defaults --defaults-group-suffix=.inst1 should only pick up [mysqld.inst1] sections ... Thanks for having a look at this potential issue ! Best regards |
| Comments |
| Comment by Daniel Black [ 2021-08-20 ] | |
|
Do you perhaps mean to use:
So --mysqld as a option rather than mysqld as a group name? | |
| Comment by Oleg Sladkoff [ 2021-08-20 ] | |
|
Thanks Daniel you are right . I tried with the --mysqld option , but still have the same issue ]# /usr/bin/my_print_defaults --defaults-group-suffix=.inst1 --mysqld Hope that helps understanding my issue Oleg | |
| Comment by Daniel Black [ 2021-08-20 ] | |
|
Thanks for checking that. It helps, and is understandable | |
| Comment by Sergei Golubchik [ 2021-08-24 ] | |
|
I hope I understood the issue correctly. If not — please, comment and I'll reopen See https://mariadb.com/kb/en/configuring-mariadb-with-option-files/#option-groups it says that --defaults-group-suffix=suffix means
So, [mysqld] is always read. And in addition [mysqld.inst1] will be read too. Normally you're supposed to use [mysqld] group for settings common to all servers. Like innodb_file_per_table=1. And use per-instance suffix for settings specific for this instance. |