I want to slim down a phpBB database, this is one of the required steps in my larger project to repair a broken phpBB 3.0.14 forum.
But, the forum being broken, I am *also* not able to use the administration CP to prune the one largest subforum: the Recycle Bin.
At this point, I'm going to purge it with PhpMyAdmin, since the STK doesn't mention the option apparently. But let us not screw up, right?
I think I got it right, could you please give me a confirmation/infirmation?
First, I should run
Code: Select all
DELETE FROM phpbb3_posts WHERE forum_id = 15
I tested it with care, running
Code: Select all
SELECT COUNT(*) FROM phpbb3_posts WHERE forum_id = 15
(Honest confession, calculating the actual byte result size of this query, Stackoverflow style, is beyond my abilities)
I think I should continue with the phpbb3_topics category, to remove references to the titles, also?
Code: Select all
DELETE FROM phpbb3_topics WHERE forum_id = 15
In the end, even if we end up with orphaned elements for some reason, as long as they are weightless and I managed to greatly reduce the size of my database, it will count as a victory.
Do you think those queries would do the work?
Or wouldn't it be enough, should I perform more?
Or is it folly to try to do that, it would only wreak havoc in the database?
Thanks to share your thoughts