Which "column" to run a MySQL Query on to delete revisions?
-
I am attempting to run the MySQL Query
DELETE a,b,c FROM wp_posts a WHERE a.post_type = ‘revision’ LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id);
to delete post revisions (to try to get my site running quicker). I am using MyPhpAdmin through cPanel at BlueHost, and it asks me to “choose at least one column to display”. I’ve tried running the Query with the
‘wp_posts’.*
column selected, but the result is only a tiny bit smaller size of databas, so I presume that was the wrong guess, as I’d guess that it should make a big difference to the size of database because most of my posts have lots of things edited before they finish.
Thanks in advance for any advice on this!
Chris
- The topic ‘Which "column" to run a MySQL Query on to delete revisions?’ is closed to new replies.