Question: mysql has gone away fix?
Answer: Server timed out and closed the connection. To fix, check that wait_timeout mysql variable in your my. ... 
You may also need to increase the innodb_log_file_size mysql variable in your my. cnf configuration to for example innodb_log_file_size = 128MB or higher.
Server dropped an incorrect or too large packet.