MyBB Community Forums

Full Version: My SQL Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Getting this MySQL error anytime i try to edit a post or make a new one.

Link to Forum: Darkstar-Cheats.com


SQL Error:
2006 - MySQL server has gone away
Query:
INSERT INTO mybb_attachments (pid,posthash,uid,filename,filetype,filesize,attachname,downloads,dateuploaded,visible) VALUES (0,'7dc6be50e12cf5101cd984d7c6ec1c91','1','Darkstar_V4.zip','application/x-zip-compressed',29376665,'202003/post_1_1583136213_43a5b54127eb22b0bab326b02866cbc3.attach',0,1583136213,1)
This is a trouble with your MySQL server, not relative to MyBB.
You should contact your hoster to have a check and correct MySQL
This is no issue with MyBB but with your database server. It can have the following reasons:
- Your attachment (transferred data) is too large for the database server to handle because of packet size limitation
- Database server reached timeout

When exactly does this error appear. On creating/editing a specific thread or any thread?
If it occurs on any new/edited thread then you may change your database configuration in my.cnf (increase values for "wait_timeout" and "max_allowed_packet")

If no configuration is possible, then first try attachments with different file sizes to approximate thresholds.

[ExiTuS]