Max-allowed-packet parameter Adjustment

Source: Internet
Author: User




Command-Line Format --max-allowed-packet=#
System Variable Name Max_allowed_packet
Scope Global, session
Dynamic Yes
Permitted Values (<= 5.6.5) Type Integer
Default 1048576
Minimum 1024
Maximum 1073741824
Permitted Values (>= 5.6.6) Type Integer
Default 4194304
Minimum 1024
Maximum 1073741824

Parameter explanation: 1:the default is 4MB, the protocol limit to Max_allowed_packet is 1GB. The new version defaults to 4MB and the current maximum is 1GB.
2: The session-level parameter is read-only, and the client accepts the maximum session-level amount of data, and the server does not send more data than the current global parameter.
3:the global value could will less than the session value if the ' global value is ' changed after the client connects conversation variable can be greater than the full The local variables only occur after the global modification occurs after the client connection.
4: Packet buffering is set by parameter net_buffer_length, but can be scaled to max-allowed-packet size as needed.

If the size is not appropriate, you can modify the Max-allowed-packet:
Set global max-allowed-packet=10000000; global level or set session max-allowed-packet=10000000; Session-level modifications take effect immediately.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.