[SOLVED][Drupal Errors] Got a packet bigger than 'max_allowed_packet' " error

| | 1 min read

Many Drupal users received a "Got a packet bigger than 'max_allowed_packet' " error in their Drupal sites. If you are facing the same situation in your Drupal site then read on to find out the solution.

The root cause of the error is likely to be your Drupal site's MySQL server. You will need to increase the maximum allowed packet size. To fix the error follow the steps below.

  • The easiest way to fix this error is to install the Drupal Tweaks module.
  • Next go to http://your-domain-name-here.com/admin/drupal_tweaks and increase the 'max_allowed_packet' memory limit.

  • More advanced users can go to
  • /etc/mysql

    in the host server running Drupal.

  • From there open the my.cnf file using the text editor.
  • max_allowed_packet = 16M

    and change it to

    max_allowed_packet = 32M
  • Next restart MySQL server using
    sudo /etc/init.d/mysql stop

    followed by a

    sudo /etc/init.d/mysql start

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.