Subscribe to RSS feed RSSフィードを購読 orまたは follow me私に従う on Twitter? Twitterで?
WordPress introduced post revisions in v2.6.ワードプレスの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.ポストのリビジョンの不幸な副作用は、データベースの肥大です。 For each edit / revision of a post, a new row is made in wp_posts table in your blog's MySQL database.それぞれの編集/ポストは、新しい行の改正wp_postsであなたのブログのMySQLデータベース内のテーブルに行われます。 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.どのようにそれがブログにされる大規模なその記事のリビジョンを削除したことを想像することができます。


How to remove post revisions in WordPress databaseワードプレスのデータベース投稿のリビジョンを削除する
Thanks to the power of MySQL, you can remove all post revisions with a single command. MySQLのパワーのおかげで、1つのコマンドですべてのポストのリビジョンを削除することができます。 Login to phpMyAdmin(or similar) and click to get into your WordPress database.ログイン(または類似の)をクリックして、ワードプレスのデータベースに入るためにphpMyAdminに。 Then click SQL tab, and paste the code below to the SQL command box:をクリックします[SQL]タブ、およびSQLコマンド]ボックスに以下のコードを貼り付けます:
DELETE FROM wp_posts WHERE post_type = "revision";のWHERE ="リビジョンpost_type名"FROM wp_posts DELETEの;
This should remove all post revisions.この後のすべてのリビジョンを削除する必要があります。 As with any other database manipulation commands, make sure to back up your database before running it.他のデータベース操作のコマンドと同様に、それを実行する前にデータベースをバックアップしてください。
Related reading関連読書
- Disable / turn off post revisions in WordPress無効/ワードプレスのポストの改正をオフにする
- Cleano: delete Windows temporary files Cleano:Windowsの一時ファイルを削除する
- How to remove / delete / erase files permanently on Windowsを削除する方法/削除/永久にWindows上でファイルを消去
- I've switched to Ubuntu Linux – post your tips here私のUbuntu Linuxに切り替えている-ここにあなたのヒントポスト
Didn't work for me.私にとってはうまくいきませんでした。
Errorエラー
SQL query: SQLクエリ:
DELETE FROM wp_posts WHERE post_type = “revision†DELETEのどこから= “revisionâ€post_type wp_posts
MySQL said: MySQLの発言:
#1054 – Unknown column '“revision†#1054 -不明な列'à ¢ â、¬ Å"revisionà ¢ â、¬