[CONC-396] !includedir in my.cnf does not include all .cnf and .ini files in the directory Created: 2019-03-23 Updated: 2020-06-28 |
|
| Status: | Open |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 3.0.8 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
When the server parses my.cnf or other option/configuration files, it interprets the !includedir directive to mean that it should include all .cnf and .ini files in the directory:
This is not the case with MariaDB Connector/C:
This can be seen here: We might want to change this, so that it reads all .cnf and .ini files in the directory, so that MariaDB Connector/C handles !includedir more like MariaDB Server. |
| Comments |
| Comment by Sergei Golubchik [ 2019-03-24 ] | |||||
|
I agree, it should behave as in the server | |||||
| Comment by Samuel Williams [ 2020-06-28 ] | |||||
|
I ran into this issue when using GitHub actions and `libmariadb`. In particular, it turns out that they mysql installation uses a socket which I had to set explicitly: https://github.com/socketry/db-mysql/commit/5e9e97f31dc3e553ab8f87d9e879d4ec4a65f66a The socket path is described in a configuration file but it isn't loaded by `libmariadb`. The top level config `/etc/mysql/my.cnf`:
Then in `/etc/mysql/mysql.conf.d/mysqld.cnf`:
But the setting is not picked up correctly and thus the connection fails without the explicit environment variable being set. |