Title: WordPress database error
Last modified: May 31, 2022

---

# WordPress database error

 *  Resolved [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-181/)
 * When I enable WP_DEBUG I see the following message in the error log when I have
   the SG optimizer plugin enabled:
    WordPress database error Got a packet bigger
   than ‘max_allowed_packet’ bytes for query UPDATE `wp_options` SET `option_value`
   = … This is followed by more than 297000 options. When I remove the plugin this
   problem goes away. From what I can tell this database query should only get called
   when installing the plugin. But it seems to be happening all the time (maybe 
   a hacker executing the php file?).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Delyan Delov](https://wordpress.org/support/users/delyandelov/)
 * (@delyandelov)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-181/#post-15696704)
 * Hi [@joneiseman](https://wordpress.org/support/users/joneiseman/),
 * We will be more than happy to assist you with resolving the error.
 * However, in order to do that we will need the site’s URL you are experiencing
   the issue with as well as detailed steps on how to recreate the error on our 
   end.
 *  Thread Starter [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-181/#post-15696713)
 * Hi Delyan,
 * This is no longer a problem for me since I’ve uninstalled the plugin. I just 
   wanted to make the developers aware of the problem.
 * Thanks,
    Jon
 *  Plugin Support [Delyan Delov](https://wordpress.org/support/users/delyandelov/)
 * (@delyandelov)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-181/#post-15696779)
 * I have tested the plugin on a fresh installation and the error was not presented.
 * Most probably the wp_options table became too large which caused the query to
   exceed the limits on the server. This is why I requested for more information
   on how we can recreate the error and further investigate it.
 *  Thread Starter [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-181/#post-15696845)
 * My wp_options table has 75045 entries. You would need to make sure the size of
   the wp_options table exceeds the maximum packet size for the mysql query command
   in order to reproduce the problem.
 *  Plugin Support [Delyan Delov](https://wordpress.org/support/users/delyandelov/)
 * (@delyandelov)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-181/#post-15701960)
 * The number of entries in wp_options table is not related rather than the size
   of the query. If your site exceeded the limits on the server this is not caused
   by our SGO plugin. Without the ability to recreate the exact error or without
   providing us with the full error log, I am afraid that we cannot further investigate
   the case. Thus, I am closing this thread as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress database error’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Delyan Delov](https://wordpress.org/support/users/delyandelov/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-181/#post-15701960)
 * Status: resolved