Database Backup Error 2013: Lost connection to server during query when dumping table

Problem

A database backup fails or is marked partially complete with the following error: Error 2013: Lost connection to MySQL server during query.

The failure consistently occurs on the same table, yet running mysqldump/mariadb-dump manually from the command line for the same database succeeds.

Cause

This issue is caused by the max_allowed_packet setting being too low. When the backup process encounters a row with a very large amount of data, the data packet exceeds the configured limit, and the database server terminates the connection.

Solution

The fix is to increase the packet size limit directly within the JetBackup 5 settings.

  1. Navigate to Settings and click the Performance tab.
  2. Locate the setting Dump max allowed packet under MySQL/MariaDB settings.
  3. Increase the value to 1 GB.
  4. Click Save Settings.

After saving, re-run the failed/partially completed backup job to verify that it now completes successfully.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Rsync Backing Up Account Fails - Error: overflow

There have been some reports of accounts failing to back up with errors similar to this:[ERROR]...

Database Backup Errors: only_full_group_by

While performing a Database Backup, you may encounter the following error: Expression #1 of...

Exclude List for FTP/SFTP Destinations does not work

FTP/SFTP destinations are known to have limitations with their commands and file pathing...

Extra Backups Appearing On JetBackup

There are many reasons extra backups can appear on JetBackup. JetBackup 4 has Manual Backups and...

Files/Folders With Custom Permissions Fail Backup

When using Rsync based destinations, such as Local/SSH Destinations, there are some cases where...