I’ve an extended choose assertion to execute on WordPress which all the time did not be question and log error “WordPress database error MySQL server has gone away for question”. After I queried the identical choose assertion uncooked on MySQL, I wouldn’t have this error. The error solely occur when the choose assertion is queried from WordPress.
How can we stop this from occurring?
What I’ve executed is enhance max_allowed_packet=256M in my.cnf and restarting mysql.
This error occur ceaselessly to a number of choose assertion even the only one. This error typically trigger the MySQL service to cease and I’ve to enter the server to restart it once more.