Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using Drupal your browser returns the following error
Got a packet bigger than 'max_allowed_packet'
The most likely cause of this error is your MySQL server. If you're new to Drupal think of MySQL server as a database.
To fix this, select the option below that better matches your needs: The beginners option or the advanced option.
Comments
drupal_tweaks
On shared hosting you may try following module:
http://drupal.org/project/drupal_tweaks
You can increase your MySQL and PHP memory.
Thanks kenorb
Thanks kenorb I added your option to the handbook.
i found clearing the cache on
i found clearing the cache on my site, then reimporting the database fixed this error
The problem could be the browser
Hello,
I've got this error. But:
- It was only in one of my several webs (hosted at the same VPS / server, same my.cnf, etc.)
- I have it only with my Iceweasel (firefox) 3.5.10 (debian testing)
Here you can read than "Both the client and the server have their own max_allowed_packet variable"
http://dev.mysql.com/doc/refman/5.1/en/packet-too-large.html
Ok, I've tried to increase the my.cnf memory to 32 or 64Mb without success but then I've think that my "client side" is my browser, isn't it... I've tried with other browser Epiphany 2.30.2 and I can now add / edit content without errors.
Regards!
www.calbasi.net
client in this case is the machine initiating the db connection
Since your comment is six years old, I'm guessing that you've already figured this out by now, so the reply is mostly for anyone else who comes along and finds this page.
Client in this instance is not your web browser. MySQL is a client server database. The client is the application that is opening the connection to interact with MySQL (in this case, Drupal using PHP PDO). The server is MySQL itself. Depending on your environment, you may have your MySQL server running on the same physical/virtual hardware as your Drupal installation or you may have it separate. If they are separate machines, you'll need to edit the my.cnf on both machines.