Jump to content
Sign in to follow this  
aradhya

MySQl server has gone away

Recommended Posts

so I am trying to upload a file larger than I mb it shows me this error-Checking:Mysql server has gone away.... I checked the max_allowed_packet on my servers settings and it is limited to 1Mb....so my question is how do i change it???....i am using a free server to host my website....all the solutions i got were related to changing on a test server using -msql --max_allowed_packet....something like that....please help...

Share this post


Link to post
Share on other sites

Are you trying to store the file data in the database? It will be more efficient to store only the filename and keep the data on disk instead.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...