Delete post revisions in WordPress हटाएँ WordPress में पोस्ट संशोधन

ADVERTISEMENT विज्ञापन
To get our software and web/tips via email, sign up for हमारे सॉफ़्टवेयर और वेब ईमेल द्वारा / सुझाव हो, साइन अप करने के लिए daily email newsletter दैनिक ईमेल न्यूज़लेटर . .
Subscribe to RSS feed आरएसएस फ़ीड की सदस्यता लें or या follow me मुझे का पालन करें on Twitter? पर चहचहाना?

WordPress introduced post revisions in v2.6. WordPress v2.6 में संशोधन के बाद शुरू की. It has been useful for multi-author blogs (and individual bloggers who revise posts several times before publishing), as they can compare revisions of their post and choose from them for publishing. यह बहु के लिए गया है उपयोगी लेखक ब्लॉग्स (और व्यक्तिगत ब्लॉगर्स जो पोस्ट प्रकाशित करने से पहले कई बार संशोधित), के रूप में वे अपने पद का संशोधन की तुलना और उन से प्रकाशित करने के लिए चुन सकते हैं. For most, however, this feature does not help much. के लिए सबसे बहरहाल, इस सुविधा का ज्यादा मदद नहीं करता है. In fact, I wouldn't be surprised if you didn't notice such a feature at all. वास्तव में, मैं अगर तुम ऐसी एक फीचर आपको सभी में नोटिस नहीं किया आश्चर्य नहीं होगा.

The unfortunate side effect of post revisions is that it bloats the database. बाद के संशोधन की दुर्भाग्यपूर्ण पक्ष प्रभाव है कि यह डेटाबेस bloats. For each edit / revision of a post, a new row is made in wp_posts table in your blog's MySQL database. संपादित करने के लिए एक / एक के बाद एक नई पंक्ति में संशोधन अपने ब्लॉग MySQL डाटाबेस में wp_posts में की गई तालिका है. For blogs with daily (or more frequent) posts, post revisions can increase the size of your DB greatly. दैनिक (या अधिक अक्सर साथ ब्लॉगों के लिए) पदों, संशोधन के बाद आपके DB का आकार काफी बढ़ा सकते हैं.

Look at the screenshot of results after I deleted post revisions on this blog below. मैं नीचे इस ब्लॉग पर पोस्ट नष्ट कर दिया संशोधन के बाद परिणाम के स्क्रीनशॉट को देखो. Note that I delete post revisions frequently, else the number of rows deleted would have been greater. ध्यान दें कि मैं पोस्ट संशोधन अक्सर हटाने के लिए, और नष्ट कर दिया पंक्तियों की संख्या अधिक रही होगी. You can imagine how large it will be for blogs which have never had their post revisions deleted. तुम सोच भी कैसे सकते हैं बड़े यह ब्लॉग जो है के लिए होगा अपने पोस्ट नष्ट कर दिया संशोधन नहीं था.

हटाने के बाद संशोधन WordPress डेटाबेस ब्लॉग

निकालें WordPress डाटाबेस के बाद संशोधन

ADVERTISEMENT विज्ञापन

How to remove post revisions in WordPress database कैसे WordPress में संशोधन के बाद हटाने के लिए डाटाबेस

Thanks to the power of MySQL, you can remove all post revisions with a single command. MySQL की शक्ति को धन्यवाद, आपको एक बार कमांड के साथ सभी पोस्ट संशोधन नहीं हटा सकते हैं. Login to phpMyAdmin(or similar) and click to get into your WordPress database. लॉगिन phpMyAdmin (या इसी तरह) और क्लिक करने के लिए अपने WordPress डेटाबेस में मिलता है. Then click SQL tab, and paste the code below to the SQL command box: तो एसक्यूएल टैब क्लिक करें, और SQL आदेश बॉक्स के लिए नीचे दिये गये कोड पेस्ट करें:

DELETE FROM wp_posts WHERE post_type = "revision"; से wp_posts हटाएँ कहां संशोधन = "post_type";

This should remove all post revisions. इस सब के बाद संशोधन को दूर करना चाहिए. As with any other database manipulation commands, make sure to back up your database before running it. किसी भी अन्य डेटाबेस हेरफेर कमांड के साथ के रूप में, इसे चलाने से पहले वापस अपने डेटाबेस सुनिश्चित कर लें.

To get our latest articles, हमारे नवीनतम लेख हो, click here to sign up यहाँ क्लिक करें साइन अप करने के लिए for our free email newsletter or subscribe to हमारे निःशुल्क ईमेल न्यूज़लेटर के लिए या सदस्यता लेने के लिए RSS feed आरएसएस फ़ीड

§ Comments § टिप्पणियाँ
  • Montana Flynn says: Montana Flynn कहते हैं:

    Didn't work for me. मेरे लिए काम नहीं किया था. : (

    Error त्रुटि
    SQL query: एसक्यूएल क्वेरी:

    DELETE FROM wp_posts WHERE post_type = “revision†हटाएँ कहाँ से post_type wp_posts = एक € œrevisionâ €

    MySQL said: MySQL ने कहा:

    #1054 – Unknown column '“revision†# 1054 - अज्ञात 'कॉलम एक ¢ एक, ¬ Å "revisionà ¢ एक, ¬

  • § Leave a Reply § एक उत्तर दें छोड़ दो