Miscellaneous ⇒ Server Chat ⇒ [solved] Error: MySQL server has gone away ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexServer Chat

[solved] Error: MySQL server has gone away Reply to topic


On /Downloads/get=117.html While executing query "DELETE FROM cms_session WHERE time<1271592286" the following error occured: MySQL server has gone away In: /home/xxxx/public_html/includes/classes/session.php on line: 173

I keep getting this error, MySQL server has gone away
Anyone one know what might be causing this?

Only started in last month or so but getting more of them each day.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Litespeed/Apache2.4.23/MySQL5.5.42/PHP 5.6.25/DF 9.4.0.0


in cmsinit.php

somewhere, after database and session classes are activated try
register_shutdown_function('df_close'); function df_close() { global $SESS, $db; $SESS->write_close(); $db->sql_close(); }

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
none available


Problem solved!

Turns out the Host moved files to another server in which the MySQL had low memory setting
Thanks for the input though.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Litespeed/Apache2.4.23/MySQL5.5.42/PHP 5.6.25/DF 9.4.0.0

All times are UTC


Jump to: