Skip to main content

Mysqldump failure during automatic backups (max_allowed_packet)

Comments

3 comments

  • cPanelLauren
    Hi @Bdzzld This is set in mysql's configuration file. You can see it by running the following: grep packet /etc/my.cnf
    If you increase this value, restart mysql do you still encounter the same error? These are the MySQL defaults - not something set by cPanel necessarily. Thanks!
    0
  • Bdzzld
    @cPanelLauren: All our cPanel servers have the following configured in /etc/my.cnf regarding mysqldump: [mysqldump] quick max_allowed_packet=16M
    The specific account is several years old and was back upped before without problems. The problem started to appear as of this month (the 4th to be exactly).
    0
  • cPanelLauren
    hi @Bdzzld This is the setting for my server under [mysqld] and not specific to mysqldump running MariaDB 10.2: # grep max_allowed /etc/my.cnf max_allowed_packet=268435456
    MariaDB [(none)]> show variables like '%max_all%'; +--------------------------+------------+ | Variable_name | Value | +--------------------------+------------+ | max_allowed_packet | 268435456 | | slave_max_allowed_packet | 1073741824 | +--------------------------+------------+ 2 rows in set (0.00 sec)
    I can confirm that these values have not been modified since I upgraded the server to MariaDB. It simply seems that the issue is the value is not high enough for your databases. The default for this limitation is 16MB per MySQL :: MySQL 5.7 Reference Manual :: B.5.2.9 Packet Too Large and Server System Variables
    0

Please sign in to leave a comment.