gpt4 book ai didi

MySQL max_allowed_pa​​cket 参数有什么问题?

转载 作者:可可西里 更新时间:2023-11-01 07:38:14 26 4
gpt4 key购买 nike

我需要增加 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 服务器的值。

关于MySQL max_allowed_pa​​cket 参数有什么问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/295523/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com