MariaDB Environment Variables
MariaDB makes use of numerous environment variables that may be set on your system. Environment variables have the lowest precedence, so any options set on the command line or in an option file will take precedence.
It's usually better not to rely on environment variables, and to rather set the options you need directly, as this makes the system a little more robust and easy to administer.
Here is a list of environment variables used by MariaDB.
|Name of the C++ compiler, used for running CMake.
|Name of the C compiler, used for running CMake.
|Perl DBI default username.
|Perl DBI trace options.
|Default directory for the mysql_history file.
|Debug trace options used when debugging.
|In addition to the given option groups, also read groups with this suffix.
|Path to the mysql_history file, overriding the $HOME/.mysql_history setting.
|Path to the directory containing the my.cnf file used by the server.
|Default host name used by the mariadb command line client.
|Command prompt for use by the mariadb command line client.
|Default password when connecting to mysqld. It is strongly recommended to use a more secure method of sending the password to the server.
|Default TCP/IP port number.
|On Unix, default socket file used for localhost connections.
|Path to directories that hold executable programs (such as the mariadb client, mariadb-admin), so that these can be run from any location.
|Directory where temporary files are created.
|Local time zone.
|Creation mode when creating files. See Specifying Permissions for Schema (Data) Directories and Tables.
|Creation mode when creating directories. See Specifying Permissions for Schema (Data) Directories and Tables.
|On Windows, up to MariaDB 5.5, the default user name when connecting to the mysqld server. API GetUserName() is used in later versions.