Cleaning my WP database

Bhankas

Regular Member
Joined
Feb 13, 2023
Messages
261
Reaction score
138
Mine is a small website, with mostly 40-50 pages, a dozen posts & videos. Problem is the database has swelled to around 3gb. I installed & uninstalled many plugins, maybe the waste has accumulated. Now all backup scripts fail and I am in a fix. Anyone know how I could remove the waste/transients? Any tip in this direction will be appreciated. Thanks
 
Mine is a small website, with mostly 40-50 pages, a dozen posts & videos. Problem is the database has swelled to around 3gb. I installed & uninstalled many plugins, maybe the waste has accumulated. Now all backup scripts fail and I am in a fix. Anyone know how I could remove the waste/transients? Any tip in this direction will be appreciated. Thanks

Use this: https://wordpress.org/plugins/advanced-database-cleaner/
 
Mine is a small website, with mostly 40-50 pages, a dozen posts & videos. Problem is the database has swelled to around 3gb. I installed & uninstalled many plugins, maybe the waste has accumulated. Now all backup scripts fail and I am in a fix. Anyone know how I could remove the waste/transients? Any tip in this direction will be appreciated. Thanks
3GB?? That's a lot!
Are you sure you are talking about the .sql database, and not about the root (full of unused backups, etc)?
 
Mine is a small website, with mostly 40-50 pages, a dozen posts & videos. Problem is the database has swelled to around 3gb. I installed & uninstalled many plugins, maybe the waste has accumulated. Now all backup scripts fail and I am in a fix. Anyone know how I could remove the waste/transients? Any tip in this direction will be appreciated. Thanks

I recommend using Advanced Database Cleaner:
https://sigmaplugin.com/downloads/wordpress-advanced-database-cleaner/

If you want, I can upload it here for free.
 
leave it to experts f you dont have clue.
expert will charge 50$ for cleaning or removing all not usable residual files on your wordpress plugins and only remain necessary files
 
There is something wrong. I never seen that db size in my life (considering the site's size).
I know. All scripts trying to backup database fail. None can make a copy. I saw over 1241 entries and one entry had over 250mb data, not sure what it could be. Moreover I do not know which entries to delete. Without a backup, taking chances risky.
 
The comments table perhaps? Try truncating the wp_comments table (don't drop it! Just truncate).
 
Mine is a small website, with mostly 40-50 pages, a dozen posts & videos. Problem is the database has swelled to around 3gb. I installed & uninstalled many plugins, maybe the waste has accumulated. Now all backup scripts fail and I am in a fix. Anyone know how I could remove the waste/transients? Any tip in this direction will be appreciated. Thanks
You should try using database cleanup plugins, such as WP-Optimize or Advanced Database Cleaner, which can remove unnecessary data and optimize your database. It’s also a good idea to check your plugins and themes for any issues or excessive records
 
Don’t forget about deleting transients, orphaned tables, spam comments, and post revisions. It helps your site feel better!
 
You should try using database cleanup plugins, such as WP-Optimize or Advanced Database Cleaner, which can remove unnecessary data and optimize your database. It’s also a good idea to check your plugins and themes for any issues or excessive records
I tried WP-optimize, it said optimized, nothing further. Same with ADC.
Don’t forget about deleting transients, orphaned tables, spam comments, and post revisions. It helps your site feel better!
I have no comments or post revisions. Transients is one thing to look for I know for sure. But now that I have downloaded the database, uploading on localhost to try removing transients is first priority. But no utility loads HUGE database

Just now, used WP Migrate plugin, and took a backup. Excluded transients, and the final size is just 21Mb. Don't know what it contains. I will import into localhost using the same plugin and see what it brought along. Fingers crossed!

Plugins work very vaguely. DB Migrate sent full website data, which I downloaded, sizing to 270 MB. Now I tried importing using the same app on localhost. Surprisingly, despite uploading the downloaded zip, it connected to the parent site, and I got a Server 500 error. In shared hosting what else to expect. IMO this is incorrect.
 
You can just extract all the articles, then wipe everything, start to install a wordpress on the domain, import all the articles, then you get a whole new website, but keep the old URL structure, like revamp your website, your database size will be normal this time.
 
Plugins work very vaguely. DB Migrate sent full website data, which I downloaded, sizing to 270 MB. Now I tried importing using the same app on localhost. Surprisingly, despite uploading the downloaded zip, it connected to the parent site, and I got a Server 500 error. In shared hosting what else to expect. IMO this is incorrect.
perhaps try adding a few more plugins and it might just start working out of sheer pressure.. lol.


The first error you got (Request entity too large) was because your php myadmin could not handle such a large file. You need to increase the upload limit, max post limit etc. Your host is returning ISE probably because you went over your resource limit. This could have been avoided if you searched the table that was huge, and truncated it, instead of downloading everything.
 
Maybe you are correct. I am not that knowledgeable in MYSQL type of thing and it is utter urgency that I am looking into it. For the past two decades, I never ever had to even look at the database part.
 
Whenever I try listing the database tables, see a message "there is a critical error in your database" but there is no verbose explanation for me to analyze

Feel free to send me a PM and I'll have a look (free of course). It might be possible that your db tables are incorrect or damaged.
 
Back
Top