Skip to main content

max_allowed_packet being ignored

Comments

9 comments

  • JanKrohn
    By the way, the table has one record with a size of 29.5 MiB.
    0
  • cPanelLauren
    The default for max_allowed_packet is: +--------------------------+------------+ | Variable_name | Value | +--------------------------+------------+ | max_allowed_packet | 268435456 | | slave_max_allowed_packet | 1073741824 | +--------------------------+------------+
    Which translates to about 268.4 MB You're inputting 256MB as the max_allowed_packet which would translate to roughly 256120000 (give or take a few) bytes So it did not accept the manual value you've put in place the manual value is also smaller than the default value. I'd update it to a higher value then save the configuration and restart MySQL
    0
  • JanKrohn
    Thanks for the reply! Hm, I think I had posted the incorrect output last time, from one of my tries when I commented out the line in my.cnf. I've set the value to 512M, and the output is now as expected. +--------------------------+------------+ | Variable_name | Value | +--------------------------+------------+ | max_allowed_packet | 536870912 | | slave_max_allowed_packet | 1073741824 | +--------------------------+------------+ The database backup, however, still fails with the same message.
    0
  • cPanelLauren
    That makes more sense! What happens if you set this to 1GB?
    0
  • JanKrohn
    The config is accepted. +--------------------------+------------+ | Variable_name | Value | +--------------------------+------------+ | max_allowed_packet | 1073741824 | | slave_max_allowed_packet | 1073741824 | +--------------------------+------------+ The db backup still exists with the same message.
    0
  • cPanelLauren
    Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks!
    0
  • JanKrohn
    Thanks! Here's the ticket number: 11122469
    0
  • cPanelLauren
    Hi @JanKrohn I just checked in on that ticket and it looks like the analyst found that the max_allowed_packet needed to be added to the mysqldump portion of the my.cnf as it's not automatically changed for mysqldump. Once that modification was made the issue stopped occurring. Thanks!
    0
  • JanKrohn
    Confirmed. No more issues.
    0

Please sign in to leave a comment.