After doing "drush cr" getting this error General error: 2006 MySQL server has gone away: CREATE TABLE {cache_default} ( `cid` VARCHAR(255)

My drupal version is 8.5. Not sure why it's trying to create tables.

Comments

lomasr created an issue. See original summary.

lomasr’s picture

Priority: Normal » Major
lomasr’s picture

Please suggest some links to study. I tried but not able to find anything related to this issue.

xaiwant’s picture

Hi @lomasr as per reported error message, what i can see here is related to server Time out issue / Delivery of large packet error.

Suggestion:
increase execution time out
increase memory to handle heavy load.

NOTE: make sure to restart the SERVER, once you have made above changes.

Refer https://drupalize.me/tutorial/clear-drupals-cache?p=2512 for more

cilefen’s picture

Status: Active » Closed (duplicate)

This is a common configuration misstep, it's usually max_allowed_packet: https://www.drupal.org/node/259580. Reopen this if that article does not help.