title: com.mysql.jdbc.PacketTooBigException: Packet for query is too large even with Packet for query is too large even with max_allowed_packet
body: <p>I have added the following in the my.cnf as follows</p>
  
  <pre><code>[mysqld]
  max_allowed_packet=32M
  [mysql]
  max_allowed_packet=32M
  </code></pre>
  
  <p>And I have also added the following to the JDBC query as well</p>
  
  <pre><code>jdbc:mysql://hostname:3306/databaseName?autoReconnect=true&amp;amp;characterEncoding=UTF-8&amp;amp;max_allowed_packet=33554432
  </code></pre>
  
  <p>But I'm still getting the error mentioned in the subject.</p>
  
  <p>Best Regards,
  Ramindu.</p>