Wordpress Hack #8: How to Optimize and Backup Your Wordpress Database Wordpressのハック# 8 :どのように最適化およびバックアップをあなたのWordPressのデータベースに
(3 pages) 2,229 views - ( 3ページ)閲覧回数2229 -著 でPosted in: の投稿:
2,229 views 2229ビュー
Please note: This page was originally written in English.ご注意:このページは、もともと英語で書かれています。
The original post can be viewed元の投稿閲覧することができます hereここで . 。
Please note: This page was originally written in English.
The text has been translated using an online service such as Google or Babelfish.
The original post can be viewed here.
Do you know how to optimize and backup your Wordpress database? あなたのWordPressのデータベースのバックアップをどのように最適化するために知っていますか? Most people don’t - until it’s too late! ほとんどの人ではありません-手遅れになるまで! I’ll show you how to protect yourself and keep your blog running smooth! 私は自分自身とスムーズに実行してあなたのブログを守るためにお見せしましょう!
This is the next installment ofこれは、次の割賦です 30 Wordpress Hacks in 30 Days 30 WordpressのHacksは30日の間に , and though we may be just a day or two behind in the deployment - we are definitely not short on content!で、私たちはただの1日か2日の背後に配置している可能性があります-我々は間違いなくコンテンツに簡単ではない! Be sure to view all 30 days to make the most of your Wordpress blog!すべての30日間表示するには、あなたのWordpressのブログを最大限に活用するにしてください!
Today I’m going to write about one of the most important and most overlooked things you need to know as a Wordpress site owner - your database.今日私は最も重要な見落としの場合は、 Wordpressのサイトの所有者として知って-あなたのデータベースに必要なことを書くつもりだ。 I would say the greater percentage of bloggers, even if they are bit geeky or techie, aren’t “database savvy”.私はブロガーの大きな割合を、少しこっけいな場合でも、または技術は、 "データベースに精通している"とされていないと思います。 It’s no different than driving a car but not knowing much about the mechanics or maintenance of it.これは車の運転は、メカニックやメンテナンスについて知ることはないとは異なるのです。 You don’t know what nobody ever told you - so consider today your lesson in “how to maintain and backup your wordpress database”.あなたが誰もが言った-だから、今日の教訓を検討する"とバックアップの方法をW ordPressのデータベースを維持するために"知っていることはありません。 Maintenance in necessary to ensure the backend of your site runs smooth, backup is necessary in case you have a disaster, move hosts, get corrupted files, or (god forbid) you screw it up hacking it yourself!必要なの円滑なメンテナンスを実行すると、バックアップの必要がある場合には、災害があることは、サイトのバックエンドを確保するため、移動ホスト、または自分でそれを台無しにハッキング(神を禁じる)が破損ファイルを入手!
It’s not hard, in fact it’s about as painless as changing your oil in your car.難しいことではないが、それについては、お客様の車の中であなたの油を変えるには無痛の事実。 What I’m going to show you is how to do “preventative maintenance” for your Wordpress DB (database).あなたがどのように" "あなたのWordpressのDBを(データベース)の予防保守を行うには何を表示するつもりだ。 People who are hackers, or programmers, or uber-geeks either login to the command line in telnet (very geeky!) to maintain their telnet database.人のハッカー、プログラマー、または超オタクのtelnetのいずれかのコマンドラインにログインしている人々 (非常にこっけいな! )のtelnetのデータベースを維持するために。 More popular is to login to your web host control panel for your site and use myPHPAdmin to graphically administer and maintain your Wordpress mySQL database.より人気のあるサイトを使用してmyPHPAdminに、ウェブホストコントロールパネルにグラフィカルに管理して、ご自分のログインWordpressのmySQLデータベースを維持することです。
There are two Wordpress plugins that I use that help me with Wordpress maintenance.私はWordpressの保守を手伝っを使用している2つのワードプレスプラグインされています。 The first is the最初のです Diagnosis plugin診断プラグイン . 。 This plugin doesn’t “do” anything except give you information about your site and the web host you are on.上にあるこのプラグイン" "を除いて、お客様のサイトにして、ウェブのホスト情報を与えることは何もしません。 The first reason this plugin is invaluable is because it gives you a reference for information you might not ordinarily know.あなたが知っているので、通常の参照を与えられないことがある情報は、このプラグインは非常に貴重な第一の理由です。 Do you know what version of PHP you have?あなたのPHPのバージョン知っていますか? Do you know your mySQL encoding type?あなたのMySQLのエンコードのタイプを知っていますか? Do you know your mySQL IP address and port number?お使いのmySQLのIPアドレスとポート番号を知っていますか? These are all things you might need to know for installing script or troubleshooting your site in the future.これらのスクリプトをインストールするか、将来のトラブルシューティングのためにお客様のサイトを知る必要があるかもしれないすべてのものがあります。 The main reason I have Diagnosis installed is because it gives me 3 pieces of information about my database load that I check out either once a week, or if my Wordpress blog starts acting funny (with errors or database connection).ので、私のデータベースの負荷に関する情報の3作品は、私は週1回のいずれか、またはをチェックすればよいのWordpressのブログ変なエラーやデータベース接続( )で演技を開始する私は診断をインストールしている主な理由です。

In my WP dashboard I go to “Dashboard -> Diagnosis” and look at the mySQL load section to briefly check out the load.私のWPを採用ダッシュボードでは、私に"ダッシュボードに行く->診断"とは、 M ySQLをロードセクションで簡単には、負荷をチェックアウトしております。 The more traffic you have, and the more database intense your pages are, the higher the load will be.お持ちのより多くのトラフィックを、より多くのデータベースの激しいお客様のページは、負荷になる高くしている。 The amount of beating a mySQL database server can take is much different on a “shared host” vs. a VPS (virtual private server) or dedicated box. MySQLデータベースサーバー打撃を受けることができるくらいの量を"共有ホストでの" VPSの(仮想プライベートサーバ)や専用のボックスとは異なります。 Shoemoney recently wrote about the fact that his Wordpress blog recently had to go to it’s own decidated server box, but it probably gets 1,000 times the traffic I do daily. Shoemoney最近、実際は自分のWordpressのブログは最近、自身のdecidatedサーバー]ボックスに行かなくてはならなかったが、おそらく私は毎日約1000倍のトラフィックを得て書いている。 The most important figure here to me is the “connection success rate”.私にとって最も重要な数字はここを"接続成功率"です。 If it’s not 99.9% - you have a problem.場合には99.9 %ではない-あなたが問題を抱えている。 Either you have more traffic than your server can handle, too many connections, or something corrupted with the database.いずれかの場合にも、多くの接続、または何かが破損し、データベースとサーバーよりも、より多くのトラフィックを扱うことができます。
I think the most common problem that happens is your Wordpress site loses connection with the DB and you get some kind of Wordpress error from your site (in a browser) that says “error connecting to database). One thing you may not realize is that when you get “shared web hosting” for $3.99 - $24.99 per month the “shared” part of the hosting is the web server and the database server.を実現することはできません1つのことをするとき"になるウェブ" $ 3.99のホスティング-$ 2 4.99、 " " 1か月あたりの一部共有共有されているホストは、 W ebサーバとデータベースサーバです。 In other word, www.yoursite.com is physically on a server sharing that computers resources with hundreds of other web sites.他の言葉では、 www.yoursite.com物理的には、サーバーの共有には、他のウェブサイトの何百ものコンピュータリソース。 Your mySQL database is more than likely on a different server, and all it does is host databases.あなたのMySQLデータベースの可能性とは異なるサーバー上でより多くされており、その中にはすべてのホストのデータベースです。 Even if your web server resources are underutilized, your database server might be maxed out by a very busy (or inefficient) site.ウェブサーバーのリソースunderutilized場合でもしているため、データベースサーバーは非常に(または)サイトの非効率的な多忙で大変疲れていることがあります。 If you get database errors or have connection problems the first thing I would do would be to see what your connection success rate is, and if it’s bad call your host and ask about the “health” of the mySQL server you’re using.データベースエラーが発生した場合、または接続の問題、接続の成功率が何であるかを確認するとなるとすれば、まずしており、ホストひどい場合は、電話の場合は、 MySQLを使用しているサーバーの"健康"について尋ねる。 You might find (like I have on some occasions) that another customer (on that DB server) is killing your site.あなた(のように私はいくつかの機会に)は、他のお客様は、 DBサーバ( )を殺害されているサイトを見つけることがあります。
This post has multiple pages...この投稿に複数のページをしている...
- Maintaining Your Wordpress Database あなたのWordpressのデータベースを維持
- Page 2 - How to Maintain a Wordpress Databaseページ2 -どのようにするためのW ordPressのデータベースのメンテ
- Page 3 - How to Backup a Wordpress Databaseページ3 -どのようにバックアップをW ordpressのデータベースへ
- View Allすべて見る
Tags:タグ: backupバックアップ , 、 databaseデータベース , 、 helpヘルプ , 、 optimize最適化 , 、 pluginプラグイン , 、 tutorialチュートリアル , 、 wordpress-hacksワードプレスのハッキング




















April 25th, 2008 at 10:16 am 4月25日、 2008年で、午前10:16
Very useful post JT.非常に便利なポストのJT 。
Q問
Is DB-manager compatible with 2.5?ているのDB -マネージャ2.5との互換性? Shows only 2.3 on the site, are you using it now with your 2.5?このサイトでは、 2月3日を表示するだけで現在使用して2.5を使用しているか?
The diagnosis part is great!一部の診断素晴らしいです! Noobs like me to WorPress don’t think about stuff like that. Noobs WorPressのようなものについては考えていない私のような。 Very important!非常に重要な! And a good plugin.とはいいプラグイン。
Do you really see an advantage over backing up the database vs just exporting the information out of WordPress?実際にはデータベースをバックアップする場合に比べて優位性を参照するのはワードプレスの情報をエクスポートする対?
I just zip my site every so often and export from WordPress.私はワードプレスから自分のサイトしょっちゅうと輸出を飛び交っている。 I also keep a DB backup because I’m paranoid妄想しているので、私もDBのバックアップを保つ
but it does seem a little redundant.でも、少し冗長のようだ。 So far I’ve only used the export/import of wordpress to set things back up.これまでのところ私だけ戻ることを設定するには、エクスポート/ワードプレスのインポートを使っています。 When I’ve toasted the DB.ときには、 DBを祝って乾杯した。 . 。 . 。 yes I have done it already.はい私には、すでに完了している。 . 。 . 。 gotta learn some way.いくつかの方法を学ぶんだ。 Anyway, I’ve just imported again and I’m right back to where I was.とにかく、私は再びインポートし、すぐに戻るんだここで、 Iされた。
Just an idea for us noobs我々にとってだけ考えnoobs
Thanks for the DB education!は、 DBの教育をしていただき、ありがとうございます!
Cウ
Acupunctures last blog post.. Acupunctures最後のブログの記事.. The Science of Getting Rich by Wallace WattlesウォレスWattlesで豊かな手に入れることの科学
April 28th, 2008 at 12:03 pm 2008年4月28日の午後12時03分
I really enjoy this wordpress hacks series.私は本当にこのワードプレスのハッキングシリーズをお楽しみください。 I’m no programmer and even I can understand and use this.私はプログラマとしているにも私は理解できるし、この使用しています。
On a related note (kind of関連した話では(種の
I Made My First BANS Sale!!!私は私の最初の禁止メイドセール! ! !
Just wanted everyone to know I made my first BANS sale today!ちょうど今日は私の最初の販売を禁止して誰もが知って欲しかったんだ!
I did the following to make it happen.私は次のように実現するでした。
1. 1 。 Used Rochelle’s “The Niche Store Checklist has been Revised” to create the BANS site.使用されるロシェルの"ニッチストアのチェックリスト"を禁じてサイトを作成へのリビジョンアップされています。 http://www.nichestorestrategies.com
2. 2 。 Used Marks’s “More Free Build a Niche Store templates - Come and Get Em!” to build the site.使用マークの"ほかのフリービルドのニッチストアテンプレート-是非とE Mを入手! "は、サイトを構築する。 http://www.thenichestorebuilder.com
3. 3 。 Used JTPratt’s “Watch Me Build a BANS Niche Site from Scratch!” to fine tune the site.使用JTPrattの"ウォッチミースクラッチから禁止ニッチサイト構築! "微調整するサイト。 http://www.jtpratt.com
4 Used JTPratt’s “Best Practices for Setting Up a New Wordpress blog in 60 Minutes or less” to set up a blog correctly. 4使用JTPrattの" Best Practicesのは、新しいワードプレスを60分以内に"ブログの設定を正しく設定するためのブログ。 http://www.jtpratt.com
Thanks to all the forum posts at BANS and all the people who commented on the sites listed above.おかげで、すべてのフォーラムの投稿を禁止し、上記のようなコメントは、サイトのすべての人に。
Come take a lookを見て、是非 http://www.toolboxhero.com and make relevant comments atとする関連のコメントで http://www.toolboxhero.com/blog . 。 The blog is dofollow so go ahead and build some backlinks.ブログのように前に行って、いくつかのバックdofollow構築されています。
Next, more backlinks, more BANS stores, and implement more ideas from Rochelle.次に、さらにバック、より多くの禁止店、ロシェルからより多くのアイデアを実装しています。 Mark, and JTPratt!!マークは、 JTPratt ! !
Thanks again, Paulおかげで、再び、ポール
Pauls last blog post..ポール教会最後のブログの記事.. Sears Normal Tool Warrantyシアーズ通常のツールを保証
June 5th, 2008 at 9:04 am 6月5日、 2008年では午前九時04分
[...] a nice article by JTPratt, his next step was installing WP-DBManager which will provide a new screen in your dashboard with [...] [...] JTPratt 、彼の次のステップですてきな資料をインストールしたWPを採用- DBManagerは、ダッシュボードでは、新しい画面を提供する[...]
August 25th, 2008 at 3:31 am 8月25日、 2008年で、午前3:31
I have to agree that backing up your database is a pain, but very important.私は、お客様のデータベースをバックアップするに痛みが同意するのは非常に重要だ。 I read a post on a forum, that I frequent, today.私は、今日頻繁にフォーラムに投稿をお読みください。 From someone who got their blog hacked.自分のブログに投稿したハッキング。 It’s just much easier to recover from that if things are backed up.それだけで回復するには、より多くの場合、物事を簡単にバックアップされます。
Sid Softwares last blog post..シドソフトウェア最後のブログの記事.. Best Windows backup software最高のWindowsバックアップソフトウェア
August 27th, 2008 at 12:02 am 8月27日、 2008年で、午前12:02
[...] don’t feel bad. It didn’t mean anything to me either when I came across it over at JT Pratt’s Blogging Mistakes (currently my favorite blog about blogging). You can follow the link to his excellent explanatory [...] [...]私にいずれかの時を越え私はそれ以上のJTプラットのブログを見ているブログについては(現在の私のお気に入りのブログ)したものを意味していないbad.Âを感じることはありません。 Âあなたはリンクに従うことができます彼の優れた説明[...]
September 10th, 2008 at 4:29 pm 2008年9月10日の午後四時29分
first off i want to thank you for the marvelous article…it is very clear and even i could “get it”….however, i have done everything you suggested and i am still loading slow….最初から私は素晴らしい記事をいただき感謝したい... ...これも非常に" "それを得ることは明らかだ... ...しかし、私はあなたと私はまだ遅い提案してきたすべての読み込み時... 。
i have also taken all the text off of you widgets, deleted all on active plug ins…私もあなたは、削除されたアクティブなプラグインのすべてのウィジェットすべてのテキストをしている...
i have done everything i have read about other than the cashe and i am so unfamiliar with that it sort of scares me…私はすべて私についてのcasheと私以外のを読んだことがあるように、並べ替えを続けてきた私になじみのない時に起こる不安...
could you please please help me….i have bugged my hosting company many times….and they said there is nothing else they can do….私を助けてくださいしてください可能性がある... 。私は何度も私のホスティング会社盗聴している... ...と彼らにできることは他には何もしている... 。
so any imput would be very appreciated.そのため、 imputは非常に高く評価される。
thanksありがとう
darleneダーリーン
September 10th, 2008 at 10:03 pm 2008年9月10日の午後10:03
@Darlene - @ダーリーン-
Looks like you have multiple issues.見えるように、複数の問題を抱えている。 I have had this exact same problem and fixed it.私はこの全く同じ問題をして固定している。 I think you have a plugin conflict and also you have massive code issues.私はあなたと対立しているプラグインはまた、大規模なコードに問題があると思う。
This is what I would do…これは私が今何をすべきかと考えています...
1. 1 。 Disable all pluginsすべてのプラグインを無効に
2. 2 。 Set the theme to defaultデフォルトの設定をテーマに
3. 3 。 Take your July 15th post and edit it. 7月15日に投稿すると、それを編集します。 Copy the text into Windows notepad. Windowsのメモ帳にテキストをコピーします。 Use Ctrl-A to “select all” and copy, then go back to the post in your Wordpress dashboard.使用Ctrlキーを押しながら"すべて"をコピーしてあなたのWordpressのダッシュボードへの投稿に行くをオンにします。 Delete everything.すべて削除します。 Paste the text you copied from notepad.メモ帳からコピーしたテキストを貼り付けます。 The problem is you’ve been writing your entries in Microsoft Word, copying the text and pasting it into your posts using the Wordpress visual editor.この問題は、 Microsoft Wordであなたのエントリを書いておいたテキストをコピーして自分の投稿はWordpressのエディタを使用して視覚的に貼り付けされています。 You have to stop doing that - it’s bloating the bejeezus out of your code.あなたは、 -それはあなたのコードのb ejeezusを膨満のをやめなければならない。
4. 4 。 Save the post, reload your home page 、郵便割引お客様のホームページをリロード
At this point everything should be better.この時点ですべてを改善する必要があります。 If it’s not, download all your plugins to your desktop in folder, then in FTP on your web server delete all the plugins in /wp-content/plugins.場合は、フォルダ内のデスクトップにし、 FTPは、ウェブサーバー上のすべてのプラグインを削除/ wp-content/pluginsすべてのプラグインをダウンロードすることではない。 Wordpress still looks in your plugin directory - even if they aren’t enabled. Wordpressのは、あなたのプラグインディレクトリに見える-有効になっていない場合でもしている。
So now, what happens?だから今、何が起こるのか? Your blog should be light years faster.あなたのブログ年の高速光する必要があります。 If it’s STILL not you may have a web host problem.もしまだの場合は、 Webホストの問題を抱えている可能性がありますされていません。 There may be too many people on your web server or the MySQL (database server) might be overused.使い古されたかもしれないが、ウェブサーバーまたはは、 MySQL (データベースサーバー)上でも多くの人がすることがあります。 I mean, if you have the default them with no plugins your blog still takes 30 seconds to load, unless you have serious database corruption your web host is to blame.場合を除き、お客様のウェブホストを責任がある深刻なデータベースが破損している場合は、あなたのブログはまだロードに30秒かかるのプラグインではデフォルトでは、している私は、意味しています。 You already optimized your database - so it should be ok.あなたが既にデータベースを最適化-ので、 [ O K]をする必要があります。
At this point, I would dump your web host for someone likeこの時点で、私のように、ウェブのホストをダンプする Hostgator . 。 I use them for about everything, they work great, and you can have unlimited sites and databases for $15/mo or less.私は何でも、素晴らしい仕事を使用すると、 $ 15/mo以下の無制限のサイトとデータベースを持つことができます。 The servers are fast, tech support is great, and I’ve never had any issues with anything - EVER.サーバーは、高速の偉大な技術サポートされており、何かで問題が発生する-これがありませんでした。
Post again on your success (or failure) once you’ve tried these steps…投稿あなたの成功(または失敗を再び)が一度は、これらの手順を試みた上で...
September 10th, 2008 at 11:23 pm 2008年9月10日の午後11時23分
hi there…ハワイが...
thanks for your comments…i have done the plugin thingy…i am afraid to do the default as i didn’t build that part of my website….and don’t know if i could get it back without a lot of tears….and i have really spent them all on this issue….ご意見をお寄せいただきありがとうございます...私は、プラグインをナニしてきた... ...私は自分のウェブサイトのその部分を構築していないとして、デフォルトの操作を行うには怖いです... 。 、もし私の涙があまりなく、元に戻す可能性があるのか分からない... 。本当にこの問題に費やしてきた... 。
i do want you to tell me more in detail about my posting behavior….and you are right in what i am doing….and i know for you you probably felt it was in detail…but i need it sort of step by step….how do i write my articles….in notebook and then copy them into wordpress???あなたが私に私の投稿の動作についてさらに詳細を知らせる必要がない... ... 。私は何をしていると、右側にある... ...と私はあなたのようなものであれば詳細に感じたけど...ステップバイステップのようなものが必要な知っている... 。どうしたら私の記事を書くか... 。ノートにして、ワードプレスにコピーできますか? ? how do i get the various styles i like in my writing….do i have to give that up???…どうすれば私の書面でのように様々なスタイルとなるか... ...それを放棄する必要がありますか? ? ...
also i finally got a senior service rep and he went to the top and found out that one of data servers (the second one or something) was/is the problem and my issue is suppose to resolved by morning…i made 6 calls to them and asked about the server thingy each time and each time they just repeated that the server load was checked and it was ok….evidiently there are two servers and they didin’t take it that far….また、私はようやく上級サービス担当者が、彼はトップに行っては、 1つのデータサーバー( 2番目のいずれかまたは何か)だった/この問題と私の問題であることを知ったは朝までに解決すると仮定...私は彼らに電話をかけ6とは、サーバーについてナニするたびに、それぞれの時間だけは、サーバーの負荷がチェックされたし、 [ OK ]を繰り返し尋ねていた... 。 evidientlyが2台のサーバーで、彼らはそれを取るdidin'tそこまで... 。
so will lst you know what happens in the morning…and i really, really appreciate your answer and thoroughness in helping me…you are great!!!!!ので、午前中に何が起こる...と私は本当に、本当にあなたの答えを、わたしにlst支援にやり遂げることに感謝を知っているだろう... ...あなたは素晴らしい!!!!!
namaste,ナマステ、
darleneダーリーン
September 11th, 2008 at 7:50 am 9月11日、 2008年で、午前7:50
Darlene,ダーリーン、
I checked your site also.私はあなたのサイトもチェックした。 I don’t think it has anything to do with the plugins or themes.私は、プラグインやテーマに何も関係はないと思う。
If you watch your browser working you will see that it is waiting to connect to the domain and once it does it loads the page rather fast.場合は、ドメインに接続して負荷を一度はかなり速い場合は、ページが表示されます仕事を待っているブラウザを監視します。 Therefore, the problem.したがって、この問題。 . 。 . 。 in my opinion is your host.私の意見でホストされています。
Hostgator is a good host I also like Hawk Host - very good and low cost. Hostgatorホークのような良いホストホストも私だ-非常に良い、低コストです。
One of my sites responds like yours at times.私のサイトの時に、あなたのように応答します。 . 。 . 。 thus it isn’t my plugins or theme.それゆえに私のプラグインやテーマではない。 It’s whatever is going on with your host at that time.それは、どんな時にホストで起こっているのです。
Good luck頑張って
September 11th, 2008 at 8:46 am 9月11日、 2008年では午前8時46分
@Darlene: What you need to do is never write posts in anything other than Wordpress from now on. @ダーリーン:あなたは、今から何もWordpressの以外の記事を書くことはありません何をする必要があります。 Make sure you are using the “visual” editor (the one with bold, italic, font size, bullets, etc).確かに、弾丸など)を太字、斜体、フォントサイズを(一は、 "視覚"エディタを使用していることを確認します。 If you aren’t - edit your profile under “Users” and enable it.されていない場合-ユーザー"の下にあなたのプロフィールを編集" 、それを有効にします。
If there are things in Word you want to do that Wordpress visual editor won’t - you should be doing those in web pages anyway.がある場合は、 Wordでは、 Wordpressのビジュアルエディタ-とにかくそれらのW ebページでやるべきことはやってみたいことがある。 Microsoft Word adds in 50X more code (most of it useless) for every page you write - making the load times slower. Microsoft Wordの50Xより多くのコードで(そのほとんど役に立たない)を使用するすべてのページを書く-負荷回遅いことが追加されます。 Not a ton slower, but slower.トンではなく、遅い速度が遅く。
To fix the existing posts you just open up Windows Notepad by going to start->Accessories ->Notepad.あなただけ- >アクセサリ->メモ帳を起動してW indowsのメモ帳を開いて、既存の記事を修正するには。 Just copy your posts there.ちょうどそちらにあなたの記事をコピーしてください。 Select all, and then copy again, and paste back to your post and save.すべて選択し、再度、コピーと貼り付けを投稿し、保存します。