Using Options to Set Program Variables

Nasza ocena:

5
Wyświetleń: 420
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Using Options to Set Program Variables - strona 1

Fragment notatki:

Using Options to Set Program Variables
Many MySQL programs have internal variables that can be set at runtime using the SET statement.
See Section 13.7.4, “SET Syntax”, and Section 5.1.5, “Using System Variables”.
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, mysql has a max_allowed_packet variable that
controls the maximum size of its communication buffer. To set the max_allowed_packet variable for
mysql to a value of 16MB, use either of the following commands:
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 G (either uppercase
or lowercase) to indicate a multiplier of 1024, 10242 or 10243. (For example, when used to set
max_allowed_packet, the suffixes indicate units of kilobytes, megabytes, or gigabytes.)
In an option file, variable settings are given without the leading dashes:
... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz