mysqldump error: Got packet bigger than max_allowed_packet'

前端 未结 4 1458
遥遥无期
遥遥无期 2021-02-01 12:21

My application download mails over IMAP and stores them in a MySQL database. Earlier I was supporting mails size upto 10 MB and hence a \'mediumtext\' column to store the mail c

4条回答
  •  既然无缘
    2021-02-01 13:09

    1. You can add --max_allowed_packet=512M to your mysqldump command.
    2. Or add max_allowed_packet=512M to [mysqldump] section of your my.cnf (thanks @Varun)

    Note: it will not work if it is not under the [mysqldump] section...

提交回复
热议问题