Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-399

Add option that corresponds to --defaults-extra-file MariaDB command-line option

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.8
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              georg Georg Richter
              Reporter:
              GeoffMontee Geoff Montee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: