Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a maximum limit for the value max_allowed_packet?

Tags:

mysql

drupal

I am running a drupal site. I got an error in my site user warning: Got a packet bigger than 'max_allowed_packet' bytes query. I have set the value as high as 128M . Even after that same error is reported.

What is the issue here?? Why is it not working ??

Is there a maximum limit for the value max_allowed_packet ?

like image 431
i_nomad Avatar asked Jun 02 '11 15:06

i_nomad


People also ask

What is the default max_allowed_packet?

The server's default max_allowed_packet value is 64MB. You can increase this if the server needs to handle big queries (for example, if you are working with big BLOB columns). For example, to set the variable to 128MB, start the server like this: $> mysqld --max_allowed_packet=128M.

What is max_allowed_packet Mariadb?

max_allowed_packet sets an upper limit on the size of any single message between the MySQL server and clients, including replicas.

Where is max_allowed_packet in MySQL?

You have two values of max_allowed_packet in MySQL : one on the client side : [mysql] section, [mysqldump] , [client] and more. one on the server side : [mysqld] section.


1 Answers

This is the bleeding edge: set global max_allowed_packet=1073741824;

Although, it is probably not a good idea to set it that high in your case.

As a side note, I experienced this error with mysqldump, and setting this maximum didn't help. This did the trick: $ mysqldump --max_allowed_packet=999M -u root -p table_name > table_name.sql

like image 103
Michael Allan Jackson Avatar answered Oct 20 '22 20:10

Michael Allan Jackson