(mysql.info.gz) Program Options
Info Catalog
(mysql.info.gz) Invoking Programs
(mysql.info.gz) Using MySQL Programs
4.3 Specifying Program Options
==============================
You can provide options for MySQL programs in several ways:
* On the command line following the program name. This is most
common for options that apply to a specific invocation of the
program.
* In an option file that the program reads when it starts. This is
common for options that you want the program to use each time it
runs.
* In environment variables. These are useful for options that you
want to apply each time the program runs, although in practice
Multiple Unix servers:: discusses one situation in which
environment variables can be very helpful. It describes a handy
technique that uses such variables to specify the TCP/IP port
number and Unix socket file for both the server and client
programs.)
MySQL programs determine which options are given first by examining
environment variables, then option files, and then the command line.
If an option is specified multiple times, the last occurrence takes
precedence. This means that environment variables have the lowest
precedence and command-line options the highest.
You can take advantage of the way that MySQL programs process options by
specifying the default values for a program's options in an option
file. Then you need not type them each time you run the program, but
can override the defaults if necessary by using command-line options.
Menu
* Command-line options Using Options on the Command Line
* Option files Using Option Files
* Environment variable options Using Environment Variables to Specify Options
* Program variables Using Options to Set Program Variables
Info Catalog
(mysql.info.gz) Invoking Programs
(mysql.info.gz) Using MySQL Programs
automatically generated byinfo2html