Skip to Main Content
MySQL Reference Manual
book

MySQL Reference Manual

by Michael Widenius, David Axmark, Kaj Arno
June 2002
Intermediate to advanced content levelIntermediate to advanced
816 pages
20h 46m
English
O'Reilly Media, Inc.
Content preview from MySQL Reference Manual

Appendix E. Environment Variables

Here is a list of all the environment variables that are used directly or indirectly by MySQL. Most of these can also be found in other places in this manual.

Note that any options on the command-line will take precedence over values specified in configuration files and environment variables, and values in configuration files take precedence over values in environment variables.

In many cases it’s preferable to use a configure file instead of environment variables to modify the behavior of MySQL. See Section 4.1.2.

Variable

Description

CCX

Set this to your C++ compiler when running configure.

CC

Set this to your C compiler when running configure.

CFLAGS

Flags for your C compiler when running configure.

CXXFLAGS

Flags for your C++ compiler when running configure.

DBI_USER

The default username for Perl DBI.

DBI_TRACE

Used when tracing Perl DBI.

HOME

The default path for the mysql history file is $HOME/.mysql_history.

LD_RUN_PATH

Used to specify where your libmysqlclient.so is.

MYSQL_DEBUG

Debug-trace options when debugging.

MYSQL_HISTFILE

The path to the mysql history file.

MYSQL_HOST

Default hostname used by the mysql command-line prompt.

MYSQL_PWD

The default password when connecting to mysqld. Note that use of this is insecure!

MYSQL_TCP_PORT

The default TCP/IP port.

MYSQL_UNIX_PORT

The default socket; used for connections to localhost.

PATH

Used by the shell to find the MySQL programs.

TMPDIR

The directory where ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

MySQL Cookbook

MySQL Cookbook

Paul DuBois
Advanced MySQL 8

Advanced MySQL 8

Eric Vanier, Birju Shah, Tejaswi Malepati
MySQL 8 Cookbook

MySQL 8 Cookbook

Karthik Appigatla
High Performance MySQL

High Performance MySQL

Jeremy D. Zawodny, Derek J. Balling

Publisher Resources

ISBN: 0596002653Purchase bookErrata Page