Oracle 5.0 Reference Manual page 2974

Table of Contents

Advertisement

You can get more information about the lost connections by starting
warnings=2
Section 5.2.1, "The Error
If you want to create a bug report regarding this problem, be sure that you include the following
information:
• Indicate whether the MySQL server died. You can find information about this in the server error log.
See
Section C.5.4.2, "What to Do If MySQL Keeps
• If a specific query kills
you ran the query, can you provide a reproducible test case? See
Systems.
• What is the value of the
variables
• Have you tried to run
query appears in the log? (See
See also
Section C.5.2.11, "Communication Errors and Aborted
to Report Bugs or
C.5.2.10. Packet Too Large
A communication packet is a single SQL statement sent to the MySQL server, a single row that is sent
to the client, or a binary log event sent from a master replication server to a slave.
The largest possible packet that can be transmitted to or from a MySQL 5.0 server or client is 1GB.
When a MySQL client or the
max_allowed_packet
closes the connection. With some clients, you may also get a
server during query
Both the client and the server have their own
handle big packets, you must increase this variable both in the client and in the server.
If you are using the
To set a larger value, start
shell>
mysql --max_allowed_packet=32M
That sets the packet size to 32MB.
The server's default
needs to handle big queries (for example, if you are working with big
set the variable to 16MB, start the server like this:
shell>
mysqld --max_allowed_packet=16M
You can also use an option file to set
the server to 16MB, add the following lines in an option file:
[mysqld]
max_allowed_packet=16M
It is safe to increase the value of this variable because the extra memory is allocated only when
needed. For example,
must return a large result row. The small default value of the variable is a precaution to catch
mysqld
incorrect packets between the client and server and also to ensure that you do not run out of memory
by using large packets accidentally.
Common Errors When Using MySQL Programs
[414]
option. This logs some of the disconnected errors in the
Log".
and the tables involved were checked with
mysqld
wait_timeout
gives you the value of this variable.)
with the general query log enabled to determine whether the problem
mysqld
Section 5.2.2, "The General Query
Problems".
mysqld
[466]
bytes, it issues an
error if the communication packet is too large.
client program, its default
mysql
like this:
mysql
max_allowed_packet
allocates more memory only when you issue a long query or when
mysqld
Crashing".
[506]
system variable in the MySQL server?
server receives a packet bigger than
ER_NET_PACKET_TOO_LARGE
max_allowed_packet
max_allowed_packet
[466]
value is 1MB. You can increase this if the server
max_allowed_packet
2954
with the
mysqld
hostname.err
CHECK TABLE
MySQL Internals: Porting to Other
Log".)
Connections", and
Section 1.7, "How
[2920]
Lost connection to MySQL
[466]
variable, so if you want to
[466]
variable is 16MB.
columns). For example, to
BLOB
[466]. For example, to set the size for
--log-
file. See
before
(mysqladmin
error and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents