How to change max_allowed_packet size

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

    I think some would also want to know how to find the my.ini file on your PC. For windows users, I think the best way is as follows:

    1. Win+R(shortcut for 'run'), type services.msc, Enter
    2. You could find an entry like 'MySQL56', right click on it, select properties
    3. You could see sth like "D:/Program Files/MySQL/MySQL Server 5.6/bin\mysqld" --defaults-file="D:\ProgramData\MySQL\MySQL Server 5.6\my.ini" MySQL56

    I got this answer from http://bugs.mysql.com/bug.php?id=68516

提交回复
热议问题