

See the Including Option File Directories section below for more information on this syntax. Instead, it reads the my.cnf and (potentially the my.ini) in the given directory.

Only read options from the given option file. Application developers who use MariaDB Connector/C in their application and rely on option files may also want to consider implementing these command-line arguments: They must be given as the first argument on the command-line. Many MariaDB clients can be configured to read options from custom options files with the following command-line arguments. For example: mysql_optionsv(mysql, MYSQL_READ_DEFAULT_FILE, (void *)"./my_conf.cnf") MariaDB Connector/C allows application developers to read option files from a custom option file by calling the the mysql_optionsv function and providing the MYSQL_READ_DEFAULT_FILE option name and an option file path as arguments. For example, you could have an option file in /etc/my.cnf with global settings for all servers, and then you could another option file in ~/.my.cnf (i.e.your user account's home directory) which will specify additional settings (or override previously specified setting) that are specific only to that user. MariaDB Connector/C will look in all of the above locations, in order, even if has already found an option file, and it's possible for more than one option file to exist. MYSQL_HOME is the environment variable containing the path to the directory holding the server-specific my.cnf file.EXEDIR is the parent directory of the executable program that MariaDB Connector/C is linked with.
#COOL MYSQL CLIENT FOR MAC WINDOWS#
The value may be a private Windows Directory for the application, or it may be the same as the System Windows Directory returned by the GetSystemWindowsDirectory function.
#COOL MYSQL CLIENT FOR MAC MAC OS#
On Linux, Unix, or Mac OS X, the default option file is called my.cnf. For example: mysql_optionsv(mysql, MYSQL_READ_DEFAULT_FILE, NULL) ĭefault Option File Locations on Linux, Unix, Mac MariaDB Connector/C allows application developers to read options from the default option files by calling the the mysql_optionsv function and providing the MYSQL_READ_DEFAULT_FILE option name and a NULL pointer as arguments. See the sections below to find out which directories are checked for which system. MariaDB Connector/C reads option files from many different directories by default.

Just like MariaDB Server and libmysqlclient, MariaDB Connector/C can also read configuration options from client option groups in option files.
