Server System Variables
467
Variable Name
max_allowed_packet
Variable Scope
Global
Dynamic Variable
Yes
The maximum size of one packet or any generated/intermediate string.
The packet message buffer is initialized to
net_buffer_length
[477]
bytes, but can grow up to
max_allowed_packet
[466]
bytes when needed. This value by default is small, to catch large
(possibly incorrect) packets.
You must increase this value if you are using large
BLOB
columns or long strings. It should be as big
as the largest
BLOB
you want to use. The protocol limit for
max_allowed_packet
[466]
is 1GB.
The value should be a multiple of 1024; nonmultiples are rounded down to the nearest multiple.
When you change the message buffer size by changing the value of the
max_allowed_packet
[466]
variable, you should also change the buffer size on the client side
if your client program permits it. On the client side,
max_allowed_packet
[466]
has a default of
1GB. Some programs such as
mysql
and
mysqldump
enable you to change the client-side value by
setting
max_allowed_packet
[466]
on the command line or in an option file.
As of MySQL 5.0.84, the session value of this variable is read only. Before 5.0.84, setting the
session value is permitted but has no effect.
•
max_connect_errors
[467]
Command-Line Format
--max_connect_errors=#
Option-File Format
max_connect_errors
Option Sets Variable
Yes,
max_connect_errors
[467]
Variable Name
max_connect_errors
Variable Scope
Global
Dynamic Variable
Yes
If more than this many successive connection requests from a host are interrupted without a
successful connection, the server blocks that host from further connections. You can unblock
blocked hosts by flushing the host cache. To do so, issue a
FLUSH HOSTS
statement or execute a
mysqladmin flush-hosts
command. If a connection is established successfully within fewer than
max_connect_errors
[467]
attempts after a previous connection was interrupted, the error count
for the host is cleared to zero. However, once a host is blocked, flushing the host cache is the only
way to unblock it.
•
max_connections
[467]
Command-Line Format
--max_connections=#
Option-File Format
max_connections
Option Sets Variable
Yes,
max_connections
[467]
Variable Name
max_connections
Variable Scope
Global
Dynamic Variable
Yes
The maximum permitted number of simultaneous client connections. By default, this is 100. See
Section C.5.2.7, “
Too many connections
”
, for more information.
Increasing this value increases the number of file descriptors that
mysqld
requires. See
Section 8.8.3, “How MySQL Opens and Closes Tables”
, for comments on file descriptor limits.
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 ...