Server System Variables
489
read_only
[488]
exists only as a
GLOBAL
variable, so changes to its value require the
SUPER
[578]
privilege. Changes to
read_only
[488]
on a master server are not replicated to
slave servers. The value can be set on a slave server independent of the setting on the master.
Important
In MySQL 5.0, enabling
read_only
does not prevent the use of the
SET
PASSWORD
statement. This is not necessarily the case for all MySQL release
series. When replicating from one MySQL release series to another (for
example, from a MySQL 5.0 master to a MySQL 5.1 slave), you should check
the documentation for the versions running on both master and slave to
determine whether the behavior of
read_only
in this regard is or is not the
same, and, if it is different, whether this has an impact on your applications.
•
read_rnd_buffer_size
[489]
Command-Line Format
--read_rnd_buffer_size=#
Option-File Format
read_rnd_buffer_size
Option Sets Variable
Yes,
read_rnd_buffer_size
[489]
Variable Name
read_rnd_buffer_size
Variable Scope
Global, Session
Dynamic Variable
Yes
Permitted Values
Type
numeric
Default
262144
Range
8200 .. 4294967295
When reading rows in sorted order following a key-sorting operation, the rows are read through this
buffer to avoid disk seeks. See
Section 8.3.1.11, “
ORDER BY
Optimization”
. Setting the variable to a
large value can improve
ORDER BY
performance by a lot. However, this is a buffer allocated for each
client, so you should not set the global variable to a large value. Instead, change the session variable
only from within those clients that need to run large queries.
The maximum permissible setting for
read_rnd_buffer_size
[489]
is 2GB.
read_buffer_size
[488]
and
read_rnd_buffer_size
[489]
are not specific to any storage
engine and apply in a general manner for optimization. See
Section 8.9.4, “How MySQL Uses
Memory”
, for example.
•
relay_log_purge
[489]
Command-Line Format
--relay_log_purge
Option-File Format
relay_log_purge
Option Sets Variable
Yes,
relay_log_purge
[489]
Variable Name
relay_log_purge
Variable Scope
Global
Dynamic Variable
Yes
Permitted Values
Type
boolean
Default
TRUE
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...