Next.js Discord

Discord Forum

max_allowed_packet when uploading heavy file in localhost

Unanswered
Savannah posted this in #help-forum
Open in Discord
SavannahOP
Hey guys, i got this error when trying to upload an heavy file in my localhost application. Before posting this message, i search by my self, and find how to fix it, but it's not working for me.

I tried many things like these :

change the my.ini file (=> max_allowed_packet=100M)
run these commandes into my mysql console (=> set global net_buffer_length=1000000; set global max_allowed_packet=1000000000)

But nothing works when i show my variables in mysql console. 😉

2 Replies