Huge wp_options table

I’d be interested to validate what you’re looking at there to make sure it really is that table. MySQL shouldn’t behave like this unless you actually have 12Gb in a row somewhere. But if you can run SQL on this database, maybe you want to try MySQL OPTIMIZE TABLE command which asks MySQL to see if it can optimize the storage for a table. So you could try running the query:

OPTIMIZE TABLE wp_options;

If that doesn’t work, please post full screenshot of why you think it’s this table, and say if you’re able to run e.g. mysqlbackup as dropping and restoring the table could be an option.

EDIT: Did a bit more searching and this may be a known issue depending on some InnoDB setup in MySQL. More information and potential setting to change here: https://www.ibm.com/support/pages/mysql-tables-grow-very-large-even-though-purger-enabled

Leave a Comment