MariaDB Environment Variables

You are viewing an old version of this article. View the current version here.

This article is incomplete.

MariaDB makes use of a 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.

Environment VariableDescription
MYSQL_PWDDefault password when connecting to mysqld. It is strongly recommended to use a more secure method of sending the password to the server.
MYSQL_TCP_PORTDefault TCP/IP port number.
MYSQL_TEST_LOGIN_FILEName of the .mylogin.cnf login path file.
MYSQL_UNIX_PORTOn Unix, default socket file used for localhost connections.
PATHPath to directories that hold executable programs (such as the mysql client, mysqladmin), so that these can be run from any location.
TMPDIRDirectory where temporary files are created.
TZLocal time zone.
USEROn Windows, the default user name when connecting to the mysqld server.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.