title: Aborted connection 3 to db: 'default_schema' user: 'root' host: 'X.X.X.X' (Got an error reading communication packets)
body: <p>I am running Django in a docker container and also I have MYSQL container running as well when I try to make a GET request I get the following from the logs. I have tried to add <code>--max_allowed_packet=1073741824</code> in my docker-compose file  but I still get the same error.</p>
  <pre><code>.....
    db:
      restart: always
      image: mysql:5.7
  
      command: --max_allowed_packets=1073741824
  
      environment:
        MYSQL_ROOT_PASSWORD: ***
        MYSQL_DATABASE: default_schema
        MYSQL_USER: ****
        MYSQL_PASSWORD: ****
  .....
  </code></pre>
  <p><strong>Logs</strong></p>
  <pre><code>    Aborted connection 3 to db: 'default_schema' user: 'root' host: 'X.X.0.X' (Got an error reading communication packets)
  
   How do i fix it?
  </code></pre>