Seo is Dead

  • Seo is Dead
  • SEO Beginners
  • SEO Intermediate
  • SEO Advance
  • Black Hat
  • Link Building
  • Security
  • WordPress
  • Ecommerce
  • Monetize
Home » Blog » HOW to Clean your WordPress DATABASE?

by seoisdead Leave a Comment

HOW to Clean your WordPress DATABASE?

Today we will see How to clean the database of our WordPress, because as time goes by it “fills up” with unnecessary data. In this blog about Black Hat we also teach you things about maintaining your website to make it go faster.

In the databases they “gather dust” or “extra data”, if you prefer. But the idea is that as the days, months and years go by while we are using WordPress, extra data accumulates, which in many cases takes up more than the necessary data. Today it’s time to clean up. I recommend doing this as it will improve the user experience of the website.

Before touching anything in the database, we need to make a backup.

But… what exactly is the Database?

WordPress is made up of two types of data. Files and databases:

  • Files: The WordPress FTP files, themes, themes and files that we have uploaded (images, documents, videos, etc.).
  • Data: The content of the website (the texts of the posts, of the pages, the titles of the products, their prices… everything we “write” and configure).

We do not see this Database in our FTP. Although it is normally hosted on the same server, we don’t have it there, visible. We must access it with a client program, like Sequel Pro, or an online manager, like PHPMyAdmin.

And why does it fill up with “useless” data?

By default WordPress stores a lot of information, which may be useful initially, but which in the long run we may never use again. For example, the recycle bin, SPAM comments, or even data from plugins that we have deleted and no longer use.
WordPress saves all of that as a precautionary measure. Maybe you want to recover that trash content, a SPAM comment that wasn’t, or even reinstall that plugin that you deleted.

Keep Reading this POST:  SWITCH To https With Let's Encrypt FREE SSL Certificate

How do I clean the database in WordPress?

The first thing is to install the WP-Sweep plugin. There are many (many, many) database cleaning plugins, but this is the one I recommend. The developer is very good, reliable, well known and even contributes to the core of WordPress. So 100% recommended.

Once installed and activated, go to “Tools / Sweep”. And there we will see everything that we can “sweep” in our database. I’m going to go through everything and summarize the most important, so you don’t delete anything you shouldn’t 😉

Cleaning up posts

We start with everything related to posts, pages, products and any other custom content.

The options it allows us to clean up are as follows:

  • Old revisions of posts to be recovered.
  • Auto-saved posts that we started to write and left halfway through without saving.
  • Posts in the trash that we delete.
  • Meta-information on deleted posts.

All of these can be deleted without a problem, unless we are not sure if we want to recover a post from the trash, or if we have auto-saved posts.

Cleaning up comments

Next we move on to comments. You know that content generated in WordPress can have comments from readers. Well, that also leaves a lot of “dust”:

The first row refers to unapproved comments – why keep them? Same with SPAM, deleted comments, as well as orphans, which are comments on a post that has been deleted.

Cleaning up users

Users are not spared either, as sometimes we still have information about them even if we delete them. This information is “meta-information” of users that no longer exist, i.e. data fields, such as name, phone number or twitter account. As we have deleted them, it doesn’t make much sense to have them there.

Keep Reading this POST:  How to CENTER a YOUTUBE Video on WORDPRESS Post

Cleaning transient options

Now we get more technical with transient options, which are options that are cached for a certain period of time.
We can delete them without any problems, although this may cause some collateral effect with users who are currently viewing the website, such as emptying their shopping cart, or they may be logged out and have to log in again. This will depend on each plugin.
In any case it is important to know that this cache of options is constantly being generated as people visit our site, and that they are very useful to avoid unnecessary calls to the database, and gain in speed.

Optimise WordPress database

This is a fixed “yes”, as the database tables will be optimised, relocating the information in a more efficient way. This can also be done from phpMyAdmin, but from here it is much simpler, just a click on the red button, and you are done.

Total database cleanup

This means that we will simply “sweep” or clean up all the options above. So if you are sure (very sure) of what you are doing, this is your button!
Just remind everyone that before using this plugin you should make a backup, as sometimes we don’t realise that deleting this data can cause unwanted side effects, until it’s too late.

Related posts:

Accelerate the LOADING of your WEBSITE and Get Better Results
How to CENTER a YOUTUBE Video on WORDPRESS Post
Tools to Improve the LOADING SPEED of your Website
SWITCH To https With Let's Encrypt FREE SSL Certificate
Is it a Good Idea to Put your SOCIAL Networks on your WEB PAGE?

Filed Under: User Experience (UX)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Blog

About

Privacity Polity

Cookie Policy

Site Map

    Copyright © 2023

    We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
    Cookie settingsACCEPT
    Manage consent

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
    CookieDurationDescription
    cookielawinfo-checbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
    cookielawinfo-checbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
    cookielawinfo-checbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
    cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
    cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
    viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
    Functional
    Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
    Performance
    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
    Analytics
    Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
    Advertisement
    Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
    Others
    Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
    SAVE & ACCEPT