Try this: http://stackoverflow.com/questions/7942154/mysql-error-2006-mysql-server-has-gone-awayhttps://stackoverflow.com/questions/7942154/mysql-error-2006-mysql-server-has-gone-away
Most of the time Mysql goes away because of the low default setting for max_allowed_packet
. Worth giving it a try.