![Not setting max_allowed_packet in MySQL according to installation requirements can lead to PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away [#984112] | Drupal.org Not setting max_allowed_packet in MySQL according to installation requirements can lead to PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away [#984112] | Drupal.org](https://www.drupal.org/files/issues/2020-08-20/Screenshot%20at%20Aug%2020%2019-59-17_0.png)
Not setting max_allowed_packet in MySQL according to installation requirements can lead to PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away [#984112] | Drupal.org
![java - max_allowed_packet variable change not resolving Packet for query is too large error - Stack Overflow java - max_allowed_packet variable change not resolving Packet for query is too large error - Stack Overflow](https://i.stack.imgur.com/Dfe8c.png)
java - max_allowed_packet variable change not resolving Packet for query is too large error - Stack Overflow
![Which option should I use to avoid error #2006 on MySQL (Docker Compose) - Database Administrators Stack Exchange Which option should I use to avoid error #2006 on MySQL (Docker Compose) - Database Administrators Stack Exchange](https://i.stack.imgur.com/sy5Ii.png)