Max-allowed-packet

Source: Internet
Author: User
When max_allowed_packetMysql5.1 encounters an excessively large information package and imports data from the client, the error code: 1153Gotapacketbiggerthanmax_allowed_packetbytes terminates data import. When the MySQL client or mysqld server receives an information packet greater than the value of max_allowed_packet,

Max_allowed_packet Mysql 5.1 encounters an excessively large information package problem when importing data using the client, the error code: 1153 Got a packet bigger than max_allowed_packet bytes terminates data import. When the MySQL client or mysqld server receives an information packet greater than the value of max_allowed_packet,

Max_allowed_packet

When importing data using the client due to an excessively large information package in Mysql 5.1, the error code 1153-Got a packet bigger than 'max _ allowed_packet 'bytes terminates data import.

When the MySQL client or mysqld server receives an information packet greater than the value of max_allowed_packet, the "information packet is too large" error is sent and the connection is closed. For some clients, if the communication information package is too large, a "lost connection to MySQL Server" error may occur during query.

Both the client and server have their own max_allowed_packet variable. Therefore, if you want to process a large information package, you must add the variable on the client and server. Generally, the default value of max-allowed-packet on the server is 1 MB.

If you are using a mysql client, the default value of the max_allowed_packet variable is 16 MB. To set a large value, you can start mysql using the following methods:

Mysql> mysql-max-allowed-packet = 32 M

You can change it in my. ini, and you need to restart mysql.

Add [mysqld] max_allowed_packet = 300 M to my. ini

This article from: http://blog.webwlan.cn/wordpress, original address: http://blog.webwlan.cn/wordpress? P = 8549, thanks to the original author.

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.