How to change max_allowed_packet size

后端 未结 12 1806
星月不相逢
星月不相逢 2020-11-22 09:16

I am having a problem with BLOB fields in my MySQL database - when uploading files larger than approx 1MB I get an error Packets larger than max_allowed_packet are not

12条回答
  •  感动是毒
    2020-11-22 09:43

    This error come because of your data contain larger then set value.

    Just write down the max_allowed_packed=500M or you can calculate that 500*1024k and use that instead of 500M if you want.

    Now just restart the MySQL.

提交回复
热议问题