Oracle 5.0 Reference Manual page 260

Table of Contents

Advertisement

--defaults-file=file_name
Use only the given option file. If the file does not exist or is otherwise inaccessible, the program exits
with an error.
--defaults-group-suffix=str
If this option is given, the program reads not only its usual option groups, but also groups with the
usual names and a suffix of str. For example, the
[mysql]
also reads the
5.0.10.
--no-defaults
Do not read any option files. If a program does not start because it is reading unknown options from
an option file,
--print-defaults
Print the program name and all options that it gets from option files.
4.2.3.5. Using Options to Set Program Variables
Many MySQL programs have internal variables that can be set at runtime using the
See
Section 13.7.4,
Most of these program variables also can be set at server startup by using the same syntax that
applies to specifying program options. For example,
controls the maximum size of its communication buffer. To set the
to a value of 16MB, use either of the following commands:
mysql
shell>
mysql --max_allowed_packet=16777216
shell>
mysql --max_allowed_packet=16M
The first command specifies the value in bytes. The second specifies the value in megabytes. For
variables that take a numeric value, the value can be given with a suffix of K, M, or
or lowercase) to indicate a multiplier of 1024, 1024
max_allowed_packet, the suffixes indicate units of kilobytes, megabytes, or gigabytes.)
In an option file, variable settings are given without the leading dashes:
[mysql]
max_allowed_packet=16777216
Or:
[mysql]
max_allowed_packet=16M
If you like, underscores in a variable name can be specified as dashes. The following option groups are
equivalent. Both set the size of the server's key buffer to 512MB:
[mysqld]
key_buffer_size=512M
[mysqld]
key-buffer-size=512M
A variable can be specified by writing it in full or as any unambiguous prefix. For example, the
max_allowed_packet
latter is ambiguous:
shell>
mysql --max=1000000
mysql: ambiguous option '--max=1000000' (max_allowed_packet, max_join_size)
Specifying Program Options
is the full path name to the file.
file_name
groups. If the
--defaults-group-suffix=_other
[client_other]
[240]
[240]
--no-defaults
[240]
"SET
Syntax", and
variable can be set for
[240]
[240]
mysql
and
[mysql_other]
can be used to prevent the program from reading them.
Section 5.1.5, "Using System
mysql
2
or 1024
as --max_a, but not as
mysql
240
client normally reads the
[240]
option is given,
groups. This option was added in MySQL
Variables".
has a
max_allowed_packet
max_allowed_packet
3
. (For example, when used to set
--max
and
[client]
mysql
statement.
SET
variable that
variable for
(either uppercase
G
because the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents