MySQL max_allowed_pa​​cket param是什么捕获?

我需要增加max_allowed_pa​​cket参数,以适应一些理论上非常大的项目.如果我把这个参数设置为10M,那么我支付的价格是多少,而不是设置为1M或4M.

感谢您的任何意见!

托马斯 最佳答案 我找到了这个解释:http://www.astahost.com/info.php/max_allowed_pa​​cket-
mysql_t2725.html

It’s safe to increase the value of
this variable because the extra memory
is allocated only when needed. For
example, mysqld allocates more memory
only when you issue a long query or
when mysqld must return a large result
row. The small default value of the
variable is a precaution to catch
incorrect packets between the client
and server and also to ensure that you
don’t run out of memory by using large
packets accidentally.

另请注意,我读过你必须更改mysql客户端和mysql服务器的值.

点赞