Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
3.0.8
-
None
-
None
-
None
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:
It is also possible to include all option files in a directory from another option file. For example, to include all option files in /etc/my.cnf.d/, an option file could contain:
[mariadb]
...
!includedir /etc/my.cnf.d/The option files within the directory are read in alphabetical order.
All option file names must end in .cnf on Unix-like operating systems. On Windows, all option file names must end in .cnf or .ini.
This is not the case with MariaDB Connector/C:
It is also possible to include the default option files in a directory from another option file. For example, to include the default option files in /etc/my.cnf.d/, an option file could contain:
[client-mariadb]
...
!includedir /etc/my.cnf.d/Unlike with MariaDB server, this directive does not configure MariaDB Connector/C to include all option files ending in .cnf on Unix-like operating systems or all option files ending in .cnf and .ini files on Windows. Instead, it just configures MariaDB Connector/C to include the my.cnf in the given directory, and also the my.ini in the given directory if it's Windows.
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.
Attachments
Issue Links
- blocks
-
MDEV-19035 Make MariaDB Connector/C handle my.cnf parsing for clients
- Open
- relates to
-
CONC-402 Replace underscores with dashes in conf_key values in mariadb_defaults array
- Closed
-
CONC-404 Add option that corresponds to --defaults-group-suffix MariaDB command-line option
- Open
-
CONC-327 !include/!includedir not parsed in my.cnf
- Closed
-
CONC-394 Some TLS-related options are not settable in my.cnf
- Closed
-
CONC-395 Dashes and underscores are not interchangeable in options in my.cnf
- Closed
-
CONC-399 Add option that corresponds to --defaults-extra-file MariaDB command-line option
- Open
-
CONC-415 Option prefixes not supported in my.cnf
- Open
-
CONC-416 On Windows, C/C looks for first my.cnf/my.ini in GetSystemDirectory() instead of GetSystemWindowsDirectory()
- Closed
-
ODBC-229 Add parameters that correspond to MYSQL_READ_DEFAULT_FILE and MYSQL_READ_DEFAULT_GROUP options from MariaDB Connector/C
- Closed