Procédure
If you have been using WordPress for a while, it is likely that your wp_postmeta table is quite large.
This article will explain how to clean the wp_postmeta table in order to reduce the size of your WordPress database
To reduce the size of the wp_postemeta table, you will need to execute MySQL queries. To run these queries, you must connect to PhpMyAdmin, then click on the SQL tab, paste the desired query into the field and press the Execute button
DELETE FROM `wp_posts` WHERE `post_type`="revision"
DELETE FROM `wp_posts` WHERE `post_status`="trash"
DELETE m FROM `wp_postmeta` AS m LEFT JOIN `wp_posts` AS p ON m.`post_id` = p.`ID` WHERE p.`ID` IS NULL
You are now able to clean the wp_postmeta table, which helps reduce the size of your MySQL database.
This will allow you to delete unnecessary data from your database and thus reduce its size.
Feel free to contact our technical support team via an incident ticket for any questions.
Ask the LWS team and the community. Answers are published after moderation.