Error in mysql "max_allowed_packet" VPS godaddy

Posted by focusmantra on Server Fault See other posts from Server Fault or by focusmantra
Published on 2013-04-17T13:23:23Z Indexed on 2013/06/27 16:23 UTC
Read the original article Hit count: 255

Filed under:
|
|
|
|

I am getting error

"Serious session error detected. Please notify administrator, this problem is most probably caused by small value in max_allowed_packet MySQL setting. "

This error generally comes after every 20-25 minutes and when it comes , it logs out the user and then logs in again, starts again and then after sometime the same issue occurs again.

I tried changing max_allowed_packet setting but getting error "access denied; You need SUPER privilege for this operation'. I even tried SET SESSION too but error "SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value"

I have hosted the website on godaddy VPS centos and access it via putty or cpanel. Website is made in moodle 2.0.3 i.e. php.

My developers use to fix this but warned will occur when server restart. As godaddy ppl say move to dedicated and then i can do but as I don't have any money so can't at present. I trying to find how developers used to do for temporary fix that is until server restart.

© Server Fault or respective owner

Related posts about mysql

Related posts about virtualhost