<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to Increase max_allowed_packets in MySQL</title>
  <link rel="self" href="https://liferay.dev/nl/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=124970" />
  <subtitle>How to Increase max_allowed_packets in MySQL</subtitle>
  <id>https://liferay.dev/nl/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=124970</id>
  <updated>2026-05-04T12:01:25Z</updated>
  <dc:date>2026-05-04T12:01:25Z</dc:date>
  <entry>
    <title>How to Increase max_allowed_packets in MySQL</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=124969" />
    <author>
      <name>Joshua Asbury</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=124969</id>
    <updated>2007-08-11T19:47:25Z</updated>
    <published>2007-08-11T19:47:25Z</published>
    <summary type="html">While uploading some large images into Liferay&amp;#39;s document library, I received the following error:&lt;br /&gt;&lt;br /&gt;ERROR [JDBCExceptionReporter] Packet for query is too large (6146352 &amp;gt; 1048576). You can change this value on the server by setting the max_allowed_packet&amp;#39; variable.&lt;br /&gt;&lt;br /&gt;To get around this, you need to increase MySQL&amp;#39;s max_allowed_packet variable.  Edit the .ini or .cnf (depends on the setup you have) file that is read by mySQL.&lt;br /&gt;&lt;br /&gt;Add in the line&lt;br /&gt;max_allowed_packet=32MB&lt;br /&gt;&lt;br /&gt;under the value of&lt;br /&gt;[mysqld]&lt;br /&gt;&lt;br /&gt;save the file&lt;br /&gt;&lt;br /&gt;shut down the mySQL server&lt;br /&gt;&lt;br /&gt;then start the mySQL server&lt;br /&gt;&lt;br /&gt;login to mysql and type&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; show variables like &amp;#39;max_allowed_packet&amp;#39;;&lt;br /&gt;&lt;br /&gt;you should get something like:&lt;br /&gt;&lt;br /&gt;+--------------------+---------+&lt;br /&gt;¦ Variable_name ¦ Value ¦&lt;br /&gt;+--------------------+---------+&lt;br /&gt;¦ max_allowed_packet ¦ 33553408 ¦&lt;br /&gt;+--------------------+---------+</summary>
    <dc:creator>Joshua Asbury</dc:creator>
    <dc:date>2007-08-11T19:47:25Z</dc:date>
  </entry>
</feed>
