Jump to content

Recommended Posts

Hi There.

 

I am having trouble with my script and I believe that I have some tweaking to do in MYSQL.

I am running a rather large query.  I am on a VPS and have full root access. 

I am not sure how large the actual query is as I believe it does change slightly. 

I think i need to tweek something in the MYSQL configuration to allow large inserts / updates and selects.  Has someone come across this error before or know of a fix?

 

Thanks,

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/190664-mysql-server-has-gone-away/
Share on other sites

I had, it was on a hosting service for my company. I put it in the bug ticket, they said that they increased the timeout time on MySQL (so you do have to tinker with the settings a bit, just not sure which). Idk if that's the answer, as it didn't work for my sites, but that might be an option.

 

Also, you might try cutting up the file and uploading it in batches if it doesn't work. Painful, I know.

It depends on the server, really. I don't actually have the options available to me, as I said, it was on a hosting company and they did the changing (but it didn't work, don't know why).

 

Anyway, my best guess would be to check your mysql configuration files, and depending on the installation, they should be somewhere in directory /usr/local/mysql/data.

 

This page might also be of some help: MySQL Server has gone away.

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.