|
When a non-NULL value is provided, the behavior of the MYSQL_READ_DEFAULT_FILE option roughly corresponds to the behavior of the --defaults-file MariaDB command-line option :
https://github.com/MariaDB/mariadb-connector-c/blob/1285dc72a043f09d9a51abcfc3a4fbfb5192067e/include/mysql.h#L169
Should MariaDB Connector/C also have an option that roughly corresponds to the behavior of the --defaults-extra-file MariaDB command-line option? This command-line option essentially adds an "extra" option file that is parsed after all others.
https://mariadb.com/kb/en/library/configuring-mariadb-with-option-files/#custom-option-file-locations
It may be useful to have an option like this if we ever want MariaDB Connector/C to parse my.cnf and other option/configuration files for client tools. e.g. see MDEV-19035
|