I am working on Magento site and I get this error:
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away on running cron job magento
I've encountered this error before. For my case it was due the database size is too large, more than 18gb for 5 years data.
The only solution that is working for me was to dump all those data and create a new database.