Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set "max_allowed_packet" in XAMPP? [closed]

Tags:

mysql

I've changed it in xampp/mysql/bin/my.ini and still, the effect does not show after restarting MySQL. If I run the following command, it works:

mysql --max_allowed_packet=512M -u root < .\db\dropUser.sql

But, when I browse pages with Drupal, my limit is back to 1Mb, despite the fact that my my.ini file has the value 512 in it.

like image 906
coderama Avatar asked Nov 05 '09 09:11

coderama


People also ask

What is default max_allowed_packet?

In a nutshell, max_allowed_packet is the maximum size of a MySQL network protocol packet that the server can create or read. It has a default value of 1MB (<= 5.6.

Where can I find max_allowed_packet?

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.

What is max allowed packet size?

The largest possible packet that can be transmitted to or from a MySQL 8.0 server or client is 1GB. When a MySQL client or the mysqld server receives a packet bigger than max_allowed_packet bytes, it issues an ER_NET_PACKET_TOO_LARGE error and closes the connection.


1 Answers

Was going to delete this, but I figured I'd share the answer. Despite what I said above, I changed the ini file again, this time altering the file to have these two values:

[mysqld]
max_allowed_packet = 512M

[mysqldump]
max_allowed_packet = 512M

Previously I had only altered one of the two. sigh

like image 105
coderama Avatar answered Sep 26 '22 03:09

coderama