MySQL - 5. 数据库管理 - 5.3. mysqld:MySQL服务器 - 5.3.3. 服务器系统变量 - max_allowed_packet
max_allowed_packet
Option Sets Variable 选项集变量 | Yes, max_allowed_packet 是 | ||||||
Variable Name 变量名称 | max_allowed_packet | ||||||
Variable Scope 变量范围 | Both 都有 | ||||||
Dynamic Variable 动态变量 | Yes 是 | ||||||
Value Set 值集 |
|
The maximum size of one packet or any generated/intermediate string.
任何生成的/中间字符串的最大大小。
The packet message buffer is initialized to net_buffer_length
bytes, but can grow up to max_allowed_packet
bytes when needed. This value by default is small, to catch large (possibly incorrect) packets.
包消息缓冲区初始化为net_buffer_length字节,但需要时可以增长到max_allowed_packet字节。该值默认很小,以捕获大的(可能是错误的)数据包。
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
is 1GB. The value should be a multiple of 1024; non-multiples are rounded down to the nearest multiple.
如果你使用大的BLOB 列或长字符串,你必须增加该值。应同你想要使用的最大的BLOB一样大。max_allowed_packet的协议限制为1GB。该值应当是1024的倍数,非整数倍将缩小至最接近的整数倍。
As of MySQL 5.1.31, the session value of this variable is read only. Before 5.1.31, setting the session value is allowed but has no effect.
对于MySQL 5.1.31,该变量的会话值是只读的,在5.1.31之间,允许设置会话值,但不起作用。
[MySQL - 5. 数据库管理 - 5.3. mysqld:MySQL服务器 - 5.3.3. 服务器系统变量 - max_allowed_packet - 文档]
http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_max_allowed_packet
http://dev.mysql.com/doc/refman/5.1/zh/database-administration.html#server-system-variables
[MySQL - 官方网站]
[MySQL - 关键词]
mysql
[MySQL - 相关论坛]
[MySQL - 下载]
http://dev.mysql.com/downloads/
[MySQL - MySQL 5.1参考手册]
9. 语言结构 - 9.2. 数据库、表、索引、列和别名 - 9.2.2. 识别符大小写敏感性, http://dev.mysql.com/doc/refman/5.1/zh/language-structure.html#name-case-sensitivity
13. SQL语句语法 - 13.1. 数据定义语句 - 13.1.5. CREATE TABLE语法, http://dev.mysql.com/doc/refman/5.1/zh/sql-syntax.html#create-table