[CONC-449] Check $MARIADB_HOME/my.cnf in addition to $MYSQL_HOME/my.cnf Created: 2019-12-20  Updated: 2021-03-22  Resolved: 2020-01-29

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.1.6
Fix Version/s: 3.1.8

Type: Task Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to CONC-537 Only read from MYSQL_HOME if MARIADB_... Closed
relates to MDEV-21375 Get option group suffix from $MARIADB... Open
relates to MDEV-21365 Check $MARIADB_HOME/my.cnf in additio... Closed

 Description   

This task is similar to MDEV-21365, but this task is for MariaDB Connector/C, and not the server itself.

Currently, if the $MYSQL_HOME environment variable is set, then MariaDB Connector/C reads the $MYSQL_HOME/my.cnf configuration file, if it exists:

https://github.com/mariadb-corporation/mariadb-connector-c/blob/v3.1.6/libmariadb/ma_default.c#L128

https://mariadb.com/kb/en/library/configuring-mariadb-connectorc-with-option-files/#default-option-file-locations-on-linux-unix-mac

To further MariaDB's branding, I think MariaDB Connector/C should similarly check $MARIADB_HOME/my.cnf, if the $MARIADB_HOME environment variable is set.



 Comments   
Comment by Georg Richter [ 2020-01-29 ]

Fixed. rev. d24e742e0e90f186381be411f0eee6d0baf2363c

Generated at Thu Feb 08 03:05:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.