This is an archived article. Please check my homepage for more up to date articles.
First, I spent a good portion of my whee early hours this morning cleaning up some Wordpress Database issues I found to be absolutely hideous. First and foremost the post revisions offered up by Wordpress now-a-days is definitely useful and an appreciated feature; but it has some serious database issues that I find really annoying.
So, let’s first disable Wordpress’s post revisions by modifying wp-config.php in your web root:
define('WP_POST_REVISIONS', false);
Just throw that code in your wp-config and we can move on to removing the revisions from the wordpress database with:
DELETE FROM wp_posts WHERE post_type = "revision";
If you’re like me, you probably renamed your table prefix in Wordpress’s config (wp-config.php), if so just adjust wp_posts to reflect your wordpress table prefix. That about does it!
Apr 06
This entry was posted on Monday, April 6th, 2009 at 11:09 amand is filed under wordpress. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.The version of my website you are viewing is currently out of date. The content is still here as an archive and you are free to continue browsing it, however, I do recommend you check out my current homepage for more up to date information.
Comments are closed.