How to change max_allowed_packet size

后端 未结 12 1739
星月不相逢
星月不相逢 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:31

    Change in the my.ini or ~/.my.cnf file by including the single line under [mysqld] or [client] section in your file:

    max_allowed_packet=500M
    

    then restart the MySQL service and you are done.

    See the documentation for further information.

提交回复
热议问题