- 2012-05-09 (水) 23:27
- Server | Word press
ブログにアクセスできない!なんでだ!と色々原因を調べると、同じCoreServer内の他のwordpressで運営しているブログは表示されている。と言う事はこのブログ単体が何かしらの影響で表示されない。今までの経験上おそらくデータベース絡みなのだろう。
データベースを修復したらいつも治るので早速と思ったら・・・・mysqlのログインが出来ずに下記のようなエラーが表示される。
#1203 – User(ユーザーID)already has more than ‘max_user_connections’ active connections.
ダメだ、ログインできなきゃどうしょうもない!あたふたしてしまうわけだが、いろいろ検索した結果修復方法が見つかった。
下記の3サイトの各エントリーが私と全く同じという感じ。早速参考にした。
私はMacなのでMacからcoreserverへssh接続を行う。
Macでcoreserverへssh接続
- coreserverの管理画面から ホスト情報登録>SSH登録 を行う。
5〜10分ほどで登録されるのでそれまで待つ。 - ユーティリティ>ターミナル.app を起動。
ターミナルを起動したら$ ssh ユーザー名@sxx.coreserver.jp
エンターを押すとPasswordを求められるのでftp接続とかのパスワードを入力するとOK!
sshでcoreserverへの接続方法はこの辺りを参考にして下さい。
mysql復旧
- 上記に紹介した各エントリーを参考に下記のコマンドを入力。
$ mysqlcheck --host=127.0.0.1 --user=<user> --password=<password> -a -o --check <db_name>
するとokの表示が各項目で羅列された。原因はわからないが取りあえずこの状態で自分のブログは表示されるようになっていたので一安心。
- 安心ついでに最適化も行っておく。
$ mysqlcheck --host=127.0.0.1 --user=<user> --password=<password> -a -o --optimize --all-databases
すると下記のように表示された。
xxx_Counterize OK
xxx_Counterize_Keywords OK
xxx_Counterize_Pages OK
xxx_Counterize_Referers OK
xxx_Counterize_UserAgents OK
xxx_ak_twitter Table is already up to date
xxx_commentmeta Table is already up to date
xxx_comments Table is already up to date
xxx_contact_form_7 Table is already up to date
xxx_download_monitor_file_meta Table is already up to date
xxx_download_monitor_files Table is already up to date
xxx_download_monitor_formats Table is already up to date
xxx_download_monitor_log Table is already up to date
xxx_download_monitor_relationships Table is already up to date
xxx_download_monitor_stats Table is already up to date
xxx_download_monitor_taxonomies Table is already up to date
xxx_downloads Table is already up to date
xxx_ktaisession Table is already up to date
xxx_links Table is already up to date
xxx_ngg_album Table is already up to date
xxx_ngg_gallery Table is already up to date
xxx_ngg_pictures Table is already up to date
xxx_options OK
xxx_postmeta OK
xxx_postrank Table is already up to date
xxx_posts OK
xxx_ratings Table is already up to date
xxx_similar_posts OK
xxx_slim_countries Table is already up to date
xxx_slim_stats Table is already up to date
xxx_statpress OK
xxx_term_relationships OK
xxx_term_taxonomy Table is already up to date
xxx_terms Table is already up to date
xxx_tweet_urls Table is already up to date
xxx_usermeta Table is already up to date
xxx_users Table is already up to date
xxx_wassup_tmp Table is already up to date
xxx_yo_amazon_cache Table is already up to date
とりあえずこれで問題なく使えるようになったようだ。一安心である。SSHがあって良かった今日この頃。復旧方法がもっと楽なら良いのにね。
関連する投稿
- Newer: 2012 J1 第11節 コンサドーレ札幌 VS FC東京
- Older: 2012 J1 第10節 アルビレックス新潟 VS FC東京
Comments:1
- qozy 12-05-09 (水) 23:27
-
ブログ更新!: ブログが繋がらない(coreserver+wordpress)sshからの方法でDB復旧。 http://t.co/GlFqrb0d
Trackbacks:0
- Trackback URL for this entry
- http://blog.planting-field.com/archives/eid2687.html/trackback
- Listed below are links to weblogs that reference
- ブログが繋がらない(coreserver+wordpress)sshからDB復旧。 from Planting Field Web Log