dyluck Posted February 2, 2010 Share Posted February 2, 2010 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, Quote Link to comment https://forums.phpfreaks.com/topic/190664-mysql-server-has-gone-away/ Share on other sites More sharing options...
Hybride Posted February 3, 2010 Share Posted February 3, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/190664-mysql-server-has-gone-away/#findComment-1005896 Share on other sites More sharing options...
scept1c Posted February 3, 2010 Share Posted February 3, 2010 Hybride, could you define more exactly the necessary option settings? Quote Link to comment https://forums.phpfreaks.com/topic/190664-mysql-server-has-gone-away/#findComment-1006083 Share on other sites More sharing options...
Hybride Posted February 4, 2010 Share Posted February 4, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/190664-mysql-server-has-gone-away/#findComment-1006897 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.