How to Delete Existing WordPress Post Revisions Stored/Saved Kā izdzēst esošos WordPress Post Revisions Uzglabātajos / Saglabātās
For users who had Tiem lietotājiem, kuri bija disabled or turned off post revisions tracking or versions history feature invalīdu vai izslēgts post revisions uzskaites vai versijām vēstures iepēju in WordPress (added since in WordPress (papildus kopš WordPress 2.6 WordPress 2,6 ), it is also made sense to delete and remove all existing stored post revisions and changes made on pages stored in the database in order to reduce the wp_posts table size, especially when there is already tons of revisions or changes been kept. ), Ir veikta arī nozīmē, dzēst un atcelt visus esošos uzglabā post grozījumus un izmaiņas, kas izdarītas lapās saglabāti datu bāzē, lai samazinātu wp_posts galda izmērs, jo īpaši tad, ja ir jau tonnas labojumi vai izmaiņas ir bijusi.
To delete and remove all existing post revisions entries and rows from WordPress database Posts table, simply login to MySQL command-line interface, Lai izdzēstu un likvidēt visus esošos post revisions ierakstus un rindas no WordPress datubāzē Posts galda, vienkārši pieteikumvārds MySQL komandrindas interfeisu, phpMyAdmin phpMyAdmin , SQLyog or other MySQL GUI tools. , SQLyog vai citu MySQL GUI rīkiem. Select the appropriate WordPress database (if you have more than one databases on the same server), and then issue the following command (it's also recommended to backup the database before performing the deletion SQL statements): Izvēlēties atbilstošu WordPress datubāzē (ja jums ir vairāk nekā vienas datu bāzes uz tā paša servera), un tad izsniedz šādus komanda (tas ir arī ieteicams backup datubāzē pirms veic svītrojums SQL pārskatiem):
DELETE FROM wp_posts WHERE post_type = "revision";
Once all post revisions related records is purged, all revision histories is deleted, and users no longer able to check the changes by phase or compare differences between versions. Kad visi post revisions saistīto dokumentāciju ir iztīra, visi pārskatīšanas vēsturi svītro, un lietotājiem vairs nav iespējas pārbaudīt izmaiņas ar fāzu vai salīdzināt atšķirības starp versijām. Thus, deletion may also been used by administrator to ensure privacy or stop authors or writers in the blog from knowing their posts have been edited. Tādējādi svītrojums var arī izmantoja administrators, lai nodrošinātu privātumu vai pārtraukt autori vai rakstnieku, kas blogā no zinot viņu amati ir rediģētas.
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above Disable un Izslēgt Post Revisions sekošanas WordPress 2,6 vai virs
- How To Store Every Post Revisions on Each Auto-Save in WordPress with Limit on Versions Count Kā uzglabāt Katru Post Revisions par katru Auto-Izņemot WordPress ar Ierobežojums attiecībā uz versijas Count
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating vai sadalīt WordPress Post vai ar Nextpage in WordPress Not Working
- Retrieve and Get WordPress Post ID Outside the Loop as PHP Variable Nolasītu un Get WordPress Post ID Ārpus Cikls kā PHP Mainīgais
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Kā nomainīt biežumu vai Interval WordPress Auto Ietaupa An Editing Post vai
- Adding Extra More Fields to WordPress Write/Edit Post/Page Right Column Ievietošanas Ekstra Vairāk laukiem WordPress Write / Edit Post / Page Right Column
- How to Move WordPress Blog to New Domain or Location Kā Move WordPress Blog uz New Domēns vai Location
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Svītrot, noņemt vai Drop Oracle Uzglabātajos komplekti ar Drop Package
- How to List and Show WordPress Posts That Comments and Pings Off (Not Allow) Kā to List un parādīt WordPress Amati, ka komentārus un impulsus, Off (Not Allow)
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL vaicājumu Kļūda WPDB klase










































March 17th, 2009 05:20 Marts 17, 2009 05:20
Here's an easier way - add Lūk, vieglāk veids - pievienot
define('WP_POST_REVISIONS',6); define ( 'WP_POST_REVISIONS', 6);
to your wp-config.php file. Jūsu wp-config.php file. change the 6 to however many revisions you want or -1 to keep them all. mainīt 6 līdz tomēr daudzi revisions vēlaties vai -1, lai saglabātu tos visus. Wordpress will delete the surplus revisions next time you save the post / page. WordPress izdzēsīs pārpalikuma revisions nākamajā reizē, kad saglabātu post / lapā.
http://codex.wordpress.org/Revision_Management http://codex.wordpress.org/Revision_Management
February 22nd, 2009 05:39 Februāris 22, 2009 05:39
¡Muchas gracias! ¡Muchas gracias! Fue de gran ayuda. FuE de Gran ayuda.
Thank you soo much! Paldies Soo much! It was helpful. Tā bija noderīga.
February 16th, 2009 16:56 Februāris 16, 2009 16:56
Can`t for te life of me get DELETE FROM wp_posts WHERE post_type = “revision”; to work. Vai `t te dzīvē man iegūt Dzēst no wp_posts KUR post_type =" pārskatīšanu "; strādāt.
January 31st, 2009 23:40 Janvāris 31, 2009 23:40
thanks man i need it thanks cilvēks Man to vajag
January 5th, 2009 02:05 5 janvāris, 2009 02:05
Great Guide!!! Great Guide!
Seriously, I have one blog that is over 2 years old, that blog has seen more than it's fair share of revisions and updates, thus the revision history was pretty clogged up. Nopietni, man ir viens blog, kas ir vairāk nekā 2 gadus vecs, ka emuārs ir redzējuši vairāk nekā tas ir taisnīga daļa no pārskatīšanu un atjaunināšanu, tādējādi caurskatīšanas vēsturi bija diezgan aizsērējusi augšu. I turned this feature off, but didn't know how to delete the history, which mean't the mysql database was horrible! I pārveidoja šo funkciju off, bet nezina, kā izdzēst vēsturē, kas mean't ar mysql datu bāzi horrible!
I only noticed as I forgot my password recently (ooops!) and had to pop into phpmyadmin to reset it, whilst there, well, lets just say I am going to print off your instructions, and clear the mess up a bit! Es tikai ievēroju, kā es aizmirsu savu paroli nesen (Ooops!), Un tā bija pop vērā phpmyadmin, lai atjaunotu to, bet tur, labi, ļauj tikai teikt, es esmu nevēršoties izdrukāt jūsu norādījumus, un nodzēstu MES pat mazliet! - Nice one, thanks so much for the tips!!! - Nicas vienu, pateicoties tik daudz par padomiem!
JOhn. John.
January 3rd, 2009 21:43 Janvāris 3, 2009 21:43
Excellent! Lieliski! Thank you for this and your tip to disable the WordPress revision feature entirely. Paldies par šo un jūsu tip atslēgt WordPress pārskatīšanu iezīme pilnībā.
November 28th, 2008 17:22 Novembris 28, 2008 17:22
thats good info tas ir labs info
thx thx
November 25th, 2008 20:34 Novembris 25, 2008 20:34
[...] ninguna función para eliminarlas… Buscando por Internet terminé en el artículo “How to Delete Existing WordPress Post Revisions Stored/Saved” publicado en “My Digital Life” que abarcaba mi [...] [...] Ninguna función para eliminarlas ... Buscando por Internet termine en el artículo "Kā izdzēst esošos WordPress Post Revisions Uzglabātajos / Saglabātās" publicado en "Mana Digital Life" que abarcaba mi [...]
November 24th, 2008 02:14 Novembris 24, 2008 02:14
[...] 資料來源:Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or AboveHow to Delete Existing WordPress Post Revisions Stored/Saved [...] [...]资料来源: Disable un Izslēgt Post Revisions sekošanas WordPress 2,6 vai AboveHow izdzēst esošos WordPress Post Revisions Uzglabātajos / Saglabātās [...]
November 17th, 2008 01:55 Novembris 17, 2008 01:55
Salut, Salut,
Ce n'est pas suffisant, il ya deux autres tables affectees par l'autosave (wp_term_relationships et wp_postmeta), le code complet serait: Ce n'est pas suffisant, il ya deux autres tabulas affectees par l'Automātiskā (wp_term_relationships et wp_postmeta), le code pabeigtu serait:
delete x,y,z
from wp_posts x
left join wp_term_relationships y on (x.id = y.object_id)
left join wp_postmeta z on (x.id = z.post_id)
where x.post_type = 'revision'
November 9th, 2008 22:02 Novembris 9, 2008 22:02
Great tip! Great tip!
October 27th, 2008 01:34 Oktobris 27, 2008 01:34
I don't need the post revision feature either, as I'm the only author of my blog. Man nav vajadzība pēc pārskatīšanas iezīme vai nu, kā es esmu vienīgais autors mans emuārs. Thanks for this tip. Paldies par šo tip.
October 23rd, 2008 21:57 Oktobris 23, 2008 21:57
Great tip! Great tip!
The revisions take up a huge amount of space when editing posts. Pārskatīšana, aizņem lielu telpu, kad editing posts.
I installed a new skin and had to edit each post to match….. I uzstādīta jauna āda, un tā bija rediģēt katram amatam, lai atbilstu ... .. twice the database size divreiz Datubāzes izmērs
Thanks for this tip, very useful! Paldies par šo tip, ļoti noderīga!
September 3rd, 2008 06:55 3 septembris, 2008 06:55
[...] beschränkt. [...] Beschränkt. Das Löschen alter Versionen ist auch nur schwer möglich über einen SQL-Befehl, der hier erklärt wird. Das Löschen mainīt Versionen ist auch nur schwer möglich über einen SQL-Befehl, der hier erklärt wird. Scheint aber auch nicht immer zu funktionieren. Scheint aber auch nicht immer zu funktionieren. Eventuell hilft dieses Plugin [...] Eventuell hilft Dieses Plugin [...]
August 17th, 2008 17:39 Augusts 17, 2008 17:39
[...] How to Delete Existing WordPress Post Revisions Stored/Saved shows how you remove existing revision posts from your database. [...] Kā izdzēst esošos WordPress Post Revisions Uzglabātajos / Saglabātās parāda, kā jūs novērstu esošos pārskatīšanu amatu no savas datu bāzes. This entry was written by Bengt, posted on August 17, 2008 at 9:39 am, filed under Blogging and tagged WordPress. Šis ieraksts bija raksta Bengt, ievietojis gada augustā 17, 2008 at 9:39, kas iesniegti saskaņā ar emuāri un tagged WordPress. Bookmark the permalink. Grāmatzīme ar Permalink. Follow any comments here with the RSS feed for this post. Izpildiet jebkādus komentārus šeit ar RSS plūsmu šajā amatā. Post a comment or leave a trackback: Trackback URL. Pasts komentāru vai atstāt Trackback: Trackback URL. Written by Bengt and published on August 17, 2008 Posted in: Blogging Tagged with: WordPress If you liked this - share it! Written by Bengt un publicē gada augustā 17, 2008 Posted in: emuāri tagged with: WordPress Ja jums patika šis - dalīties it! StumbleUpon | Digg it | del.icio.us | Email this Subscribe: by RSS or email « Authentic blogging [...] StumbleUpon | Digg it | del.icio.us | Nosūtīt šo Abonēt: pēc RSS vai e-pastu «Authentic blogošana [...]
July 25th, 2008 03:51 Jūlijs 25, 2008 03:51
[...] what about those revisions left in your database? [...] To, ko par šiem labojumiem kreisajā jūsu datu bāzi? Several posts look as if they found the true answer, but it's one of those “The one who laughs last, [...] Vairāki amati skatīties, kā tad, ja konstatēts, patieso atbildi, taču tas ir viens no šiem ", kurš smejas pēdējais, [...]
July 23rd, 2008 04:25 Jūlijs 23, 2008 04:25
[...] and Turn Off Post Revisions Tracking in WordPress 2.6 or AboveHow to Delete Existing WordPress Post Revisions Stored/Saved Ctrl-z [↩]Post Revision 資料是寫入 wp_posts 資料表 [...] [...] Un Izslēgt Post Revisions sekošanas WordPress 2,6 vai AboveHow izdzēst esošos WordPress Post Revisions Uzglabātajos / Saglabātās Ctrl-z [↩] Post Revision资料是写入wp_posts资料表[...]