Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Bereinigen der WordPress-Datenbank zur Verbesserung der Leistung

Hinweis der Redaktion: Wir erhalten eine Provision für Partnerlinks auf WPBeginner. Die Provisionen haben keinen Einfluss auf die Meinung oder Bewertung unserer Redakteure. Erfahre mehr über Redaktioneller Prozess.

Wenn Sie WordPress schon eine Weile benutzen, dann ist die Wahrscheinlichkeit groß, dass Sie Ihre WordPress-Website bereinigen müssen. Durch regelmäßige Bereinigungen können Sie die Größe Ihrer Datenbank reduzieren, was zu schnelleren und kleineren Backup-Dateien führt. In diesem Artikel zeigen wir Ihnen, wie Sie die WordPress-Datenbank bereinigen können.

Cleaning up WordPress Database

Wenn Sie WordPress verwenden, sammelt Ihre Datenbank eine Menge zusätzlicher Daten an, wie z. B. Revisionen, Spam-Kommentare, gelöschte Kommentare, Daten von Plugins, die Sie nicht mehr verwenden, und vieles mehr. Das Entfernen all dieser unnötigen Daten kann die Größe Ihrer Datenbank erheblich reduzieren, was den Backup-Prozess beschleunigt und auch zu kleineren Leistungsverbesserungen führen kann.

Werfen wir einen Blick darauf, wie Sie Ihre WordPress-Datenbank bereinigen können.

Bevor Sie beginnen, machen Sie ein Backup!

Bevor Sie irgendetwas anderes tun, erstellen Sie zunächst ein vollständiges WordPress-Backup Ihrer Website. Die durch das Clean Up Plugin vorgenommenen Änderungen sind nicht rückgängig zu machen. Auch wenn es nicht direkt in Ihre Beiträge oder Kommentare eingreift, ist es immer besser, auf Nummer sicher zu gehen.

Video-Anleitung

Subscribe to WPBeginner

Wenn Ihnen das Video nicht gefällt oder Sie weitere Anweisungen benötigen, lesen Sie bitte weiter.

Bereinigung der WordPress-Datenbank mit WP-Sweep

Als Erstes müssen Sie das WP-Sweep-Plugin installieren und aktivieren. Nach der Aktivierung gehen Sie einfach auf Tools “ Sweep, um Ihre WordPress-Datenbank zu bereinigen.

WP-Sweep posts analysis

Dieses Plugin analysiert Ihre WordPress-Datenbank und zeigt Ihnen in einem Bericht an, wie viel Unordnung Sie beseitigen können. Der Sweep-Bericht ist in verschiedene Abschnitte für Ihre Beiträge, Kommentare, Benutzer-Meta, Optionen, Begriffe und Datenbank-Optimierung unterteilt.

Cleaning up your comment meta and user meta data

Sie können durch die Elemente gehen und sie einzeln bereinigen, oder Sie können bis zum Ende der Seite scrollen und auf „Sweep all“ klicken, um alles in Ihrer WordPress-Datenbank zu bereinigen.

Die Bereinigung kann einige Zeit dauern, je nachdem wie groß Ihre Datenbank ist. WP-Sweep zeigt Ihnen den Fortschritt an, indem es die Statistiken auf der Seite aktualisiert.

Warum WP-Sweep gegenüber WP-Optimize?

Sie fragen sich vielleicht, warum wir über WP-Sweep schreiben, wenn es doch ein sehr beliebtes WP-Optimize-Plugin gibt, das fast das Gleiche tut.

Nun, das ist, weil es von einem angesehenen WordPress-Entwickler, Lester Chan, programmiert wurde.

Auch weil das Hauptunterscheidungsmerkmal von WP-Sweep darin besteht, dass es so weit wie möglich richtige WordPress-Löschfunktionen verwendet, anstatt direkte MySQL-Löschabfragen durchzuführen. Das WP-Optimize-Plugin hingegen verwendet direkte SQL-Löschabfragen, die verwaiste Daten zurücklassen können.

Mit anderen Worten: WP-Sweep ist ein besser kodiertes Plugin als WP-Optimize.

Was reinigt WP-Sweep alles?

WP-Sweep verwendet alle richtigen WordPress-Löschfunktionen, um die Datenbank zu bereinigen. Zum Zeitpunkt der Erstellung dieses Artikels kann es Folgendes bereinigen:

  • Überarbeitungen
  • Automatische Entwürfe
  • Gelöschte Kommentare
  • Nicht genehmigte Kommentare
  • Gespammelte Kommentare
  • Gelöschte Kommentare
  • Verwaiste Beiträge und Metadaten
  • Verwaiste Kommentar-Meta
  • Verwaiste Benutzer-Meta
  • Verwaiste Begriffsbeziehungen
  • Unbenutzte Begriffe
  • Doppelte Beitragsmetas
  • Doppelte Kommentar-Metadaten
  • Doppelte Benutzer-Metadaten
  • Vergängliche Optionen
  • Optimiert Datenbanktabellen
  • oEmbed Caches in Post-Meta

Wir hoffen, dass dieser Artikel Ihnen geholfen hat, Ihre WordPress-Website mit WP-Sweep zu bereinigen. Vielleicht möchten Sie sich auch unseren Leitfaden zu den häufigsten WordPress-Fehlern und deren Behebung ansehen.

Wenn Ihnen dieser Artikel gefallen hat, dann abonnieren Sie bitte unseren YouTube-Kanal für WordPress-Videotutorials. Sie können uns auch auf Twitter und Google+ finden.

Offenlegung: Unsere Inhalte werden von unseren Lesern unterstützt. Das bedeutet, dass wir möglicherweise eine Provision verdienen, wenn Sie auf einige unserer Links klicken. Mehr dazu erfahren Sie unter Wie WPBeginner finanziert wird , warum das wichtig ist und wie Sie uns unterstützen können. Hier finden Sie unseren redaktionellen Prozess .

Das ultimative WordPress Toolkit

Erhalte KOSTENLOSEN Zugang zu unserem Toolkit - eine Sammlung von WordPress-bezogenen Produkten und Ressourcen, die jeder Profi haben sollte!

Reader Interactions

28 KommentareEine Antwort hinterlassen

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Sally G. says

    In terms of comments, does Empty Spam and Empty Trash do the same thing as this plug-in? I can certainly see where it would be useful for earlier revisions to a post, etc.

    • WPBeginner Support says

      For sites just starting out it would be the same but as a site grows it can clean up information from comments that were deleted and a few other things :)

      Admin

  3. Nivesh Gandhi says

    Both are great plug ins. Normally you don’t even need to do backup. But its always good to be on safe side.

  4. Dave says

    WP Sweep – what a plugin. I have a WP site that hadn’t had much love over the past 18 months and somehow had a 1.4Gb DB. Worryingly WP Sweep managed to reduce that to just over 17MB.

    More investigation needed.

  5. Francis says

    Hello , i have a question. Im using godaddy managed wordpress . They have a staging site. Can i use the staging site to clean up database then , push it to live production site after. Will it clean my database. Thanks

  6. Mike Patterson says

    Thank you for the useful information on cleaning WordPress Site. This helps me a lot as my site is getting bulky and take a lot of time to get load.

  7. Ramon says

    Looked promissing but I’m not sure about the result. I had about 2600 revisions.. hoped cleaning them would make a difference but it didn’t, at least not in database size, might even be bigger now .. about 800MB.. What options are there to compact database if cleaning up doesn’t help?

    By the way: looked like wp-sweep locked up a couple of times.. after refesh I noticed that the numbers were decreased and I started again, and again, and again till all revisions where removed. Can’t say I’m excited about wp-sweep but maybe I used it wrong, is that possible?

  8. Ahmed says

    Very nice post!
    Cleaning database is very usefull especially for large ones.
    I have used the Advanced Database Cleaner, it is also very powerful and provides many features such as scheduling the cleaning of database and more…

  9. Chris says

    I really enjoyed this article, the layout, and the links. I really just had to say I appreciate the 50 second video that quickly and easily explained what to do and the lead in of backing up your site with a quick little article to find a backup service. I’m new to WP and blogging but trying to learn fast and after viewing this page I can tell I’m going to be spending a lot of time on your site! Well done and thanks!

  10. Anna says

    I had wp optimize on my „to install“ list, but after seeing this post I downloaded WP sweep. it’s so easy to use. I usually clean up my spam comments, but I know that I have a lot of revisions on my posts so it’s good to get rid of those!

  11. Bhongo says

    yet another great article. Good job guys, I have never thought about about a database clean-up for my WP sites but now thanks to you, I will be doing a clean-up ASAP.

  12. Nikky says

    We’ve been using Wp-Optimize plugin and it works great with similar options to the plugin mentioned above. What you suggest Wp-Optimize or WP-Sweep ?

  13. KennyTheMap says

    Certainly cleaned up a lot of trash from my main website.
    Like Broken Link Checker it is a really useful plugin.

    A question; I deactivate such plugins until I next need to use them as I gather that can improve performance. Is my assumption correct?

    Thanks, Kenny

    • WPBeginner Support says

      Properly coded plugins will not affect your site’s performance when you are not using them. But there can be plugins that will add additional style sheets or JavaScript even if you are not using them. So it is best to deactivate the plugins you are not using.

      Admin

  14. Dave says

    I agree! I have used a bunch of tools for this purpose before, with mostly good results. But this plugin is SO much easier to use, and really did a great job of cleaning.

    Of course, some people won’t heed the clear warning to back up first, but that’s human nature, I suppose. :)

    A super job by Lester Chan, an under-appreciated outstanding coder and contributor to WordPress!

    Dave

  15. Kenneth Adair says

    I deleted the wp-optimize and added the wp-sweep but where does one see what the database size is before and after sweeping?

    • Marcelo says

      That’s the thing with this Sweep plugin. Its author wants things clear, simple, and minimalistic. But I think the UI for such a critical tool like a database cleaning, should be more detailed.
      Also, the lack of a scheduling feature will make it pass unnoticed.

      I think the best approach would be if Ruhani Rabin could upgrade its own and well known plugin to use official, native, WP queries to the cleaning. I will ask him what does he think about it.
      https://github.com/ruhanirabin/WP-Optimize/issues/60

      Lester Chan is a great programmer, but I wouldn’t like to abandon WP-Optimize because of the approach.

      What do you think guys?

      Best regards

Eine Antwort hinterlassen

Danke, dass du einen Kommentar hinterlassen möchtest. Bitte beachte, dass alle Kommentare nach unseren kommentarpolitik moderiert werden und deine E-Mail-Adresse NICHT veröffentlicht wird. Bitte verwende KEINE Schlüsselwörter im Namensfeld. Lass uns ein persönliches und sinnvolles Gespräch führen.