• Resolved kristinubute

    (@kristinubute)


    Hi

    My client ecommerce site was compromised back in November, we restored the entire website and updated all plugins again and WordPress version and cleaned it up.

    Website is working great now.

    I’m trying to get full backups working so I have a full backup for peace of mind. I’ve had issues doing full backups. I’m using backupbuddy and I’ve tried 2 other backup plugins.

    The backup plugin people said the database is too large.

    I’m wondering, if the website was compromised previously and all malicious files were removed, could they have infected the database also? As I’m not familiar with where else will be affected etc?

    What should I be looking for in the database where things can be injected into database causing some directories to be larger than usual?

    I am looking at different database tables in the current website, which the backup guy said these tables should not be that huge.

    The eCommerce site has over 4000 products but but he said certain tables even with that amount of products shouldn’t be that large.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kristinubute

    (@kristinubute)

    Hi

    Can I just clear out some of these database content that is not required (but I don’t know which to clear obviously)? I know this can be dangerous, but I somehow need to rectify things.

    I have not needed to do this before hence why I am asking, don’t want to accidentally cause an issue with the database where entire site goes down.

    I’ve got a TEST site of the live site that I’m working on also.

    Database tables:

    wp_ac_abandoned_cart_history_lite 3.2MB (assume I can clear this as don’t need the history all the time?)

    wp_actionscheduler_actions 16MB (should I clear this regularly?) I’ve cleared this previous for other clients.

    wp_actionscheduler_logs 10MB (should I clear this regularly?) I’ve cleared this previous for other clients.

    wp_options 439MB (this doesn’t sound right? ) He said shouldn’t be that large ?

    wp_wpml_mails 277MB (this is huge also he said) ..

    wp_aioseo_cache 1.47MB

    wp_ig_actions 10mb (not sure what this is)

    wp_ig_campaigns 2.66MB

    wp_ig_mailing_queue 3MB

    wp_ig_sending_queue 5MB

    wp_term_relationships 8MB

    wp_termmeta 2MB

    wp_terms 3MB

    wp_usermeta 14MB

    wp_wc_product_meta_lookup 2MB

    wp_wfconfig 2.5MB

    wp_wffilemods 18MB (maybe dodgy stuff in here?)

    wp_wfknownfilelist 10MB

    wp_woocommerce_order_itemmeta 12MB

    wp_woocommerce_sessions 3MB

    wp_wsal_metadata 10MB

    wp_yoast_indexable 27MB

    THank you in advance, I hope someone can shed some light as in what is normal in certain database on an ecommerce site that has over 4000 products.

    Then I can do what I need to fix the full backups not working because of the database size apparently.

    Thanks

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @kristinubute,

    I’m wondering, if the website was compromised previously and all malicious files were removed, could they have infected the database also? As I’m not familiar with where else will be affected etc?

    It’s possible that a compromised website could have affected your database, especially if malicious code was injected. However, restoring the entire website and cleaning up all files, as you’ve done, usually takes care of this.

    The backup plugin people said the database is too large.

    It’s not unusual for an eCommerce site with over 4000 products to have a large database. Product data, order data, customer data, and other related information can contribute to the size of the product. However, certain tables you mentioned do seem unusually large.

    wp_options 439MB (this doesn’t sound right? ) He said shouldn’t be that large ?

    This table should not be as large as 439MB. This table generally stores all the site’s settings and some plugin data. If it’s too large, it might store transient data that hasn’t been cleared properly.

    wp_wpml_mails 277MB (this is huge also he said) ..

    This table seems related to a mail plugin and might store emails that have been sent. If these are not needed, they could be cleared out.

    Can I just clear out some of these database content that is not required (but I don’t know which to clear obviously)? I know this can be dangerous, but I somehow need to rectify things.

    In terms of what you can safely clean, the wp_ac_abandoned_cart_history_lite, wp_actionscheduler_actions, and wp_actionscheduler_logs tables could be cleared if you don’t need the historical data.

    Additionally, head over to WooCommerce → Status → Tools, and do the following:

    • WooCommerce transients – Clear
    • Expired transients – Clear
    • Clear template cache – Clear
    • Capabilities – Reset Capabilities

    Before making any changes, I’d strongly recommend backing up your database. Even if the backup is partial, it’s better to have some backup than none at all.

    Also, since you have a test site, you can try clearing the data there first to see if it causes any issues.

    In the long run, consider implementing a database optimization plugin that can help keep your database lean by regularly cleaning up unwanted data.

    Please note that making changes to the database can have serious consequences if not done correctly, so proceed with caution. If you’re unsure, you might want to consider hiring a professional to handle this.

    I hope this information helps. Let me know if you have any other questions.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @kristinubute,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to reduce some database tables in wordpress that are too large’ is closed to new replies.