---
title: "Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table XXX"
date: "2025-02-06T01:07:17+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/93331-error-2020-got-packet-bigger-maxallowedpacket-bytes-when-dumping-table-xxx"
id: "8633450f-5f19-449a-be80-b313448f2386"
---

Issue
-----

When you request a backup, the task fails  with this error

    mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table XXXXX

Resolution
----------

You need to upsize the max\_allowed\_packet value on your stack. To do this, add (or edit) a file called .my.cnf in the home directory of a web instance of your stack (if it's production, it's either an instance that starts with web- or ded-, and for non-produciton, it's an instance that starts with staging-) and add/update these lines:

    [mysqldump]
    max_allowed_packet = 512M

### Drush

If that still doesn't work with Drush, add this to the end of the sql-dump command:

    --extra-dump=--max_allowed_packet=512M

If you still run into difficulties, [file a ticket with Acquia Support](/service-offerings/contacting-acquia-support "Contacting Acquia Support").