Pop Culture•Music•Travel•Fashion•Sports•Money•Tech
Thursday February 16th 2012

What To Do When Your Wordpress Blog Vanishes

Last night around 9:30pm, I received an urgent call from the editor of launabeachbikini.org. Their website, which is powered by Wordpress, had completely vanished.

Just like on the cover of the Hitchhiker’s Guide to the Galaxy, the first thing is: Don’t Panic.

I tried to access the home page with a web browser. Nothing.
I tried to access the admin area with a web browser. Gone.
Then I connected to the server host by ftp. All the wordpress files were in their proper places. This points to some kind of database problem.

Using phpMyAdmin I was able to look at the database tables. Several of the tables had overhead, and the one of the tables was marked “in use”.

Then I recalled something similar happening about seven months ago. At that time, all the posts had vanished and I found the answer in the WordPress.org Support forum How-To and Troubleshooting. Here is the post:

What to do if all posts and pages disappeared

The Wordpress.org forums are the place to find the answers to wordpress questions.

Repair MySQL Tables
It turns out that sometimes the MySQL database can get corrupted. If it tries to update a table and their is not enough room, the tables can become fragmented. This is analogous to disk fragmentation. The tables can be repaired to get rid of the overhead.

Here is a good article explains the problem and how to fix it: How To Quickie: Repair MySQL Tables by Paul Stamatiou.

The steps are:

  1. Login to phpMyAdmin.
  2. Select the wordpress database.
  3. Observe all the database tables.
  4. Select checkboxes for each table that has an overhead value.
  5. In the with selected drop down menu, select repair table
  6. It should report repair status OK
  7. Look at the tables again. If any table is marked “in use” try to repair that table

This should fix the database. If all the tables cannot be repaired, you will have to restore the wordpress database from a backup. I’ll discuss that in another post.

Thanks and a hat tip to Paul Stamatio who writes a blog about tech news, reviews and guides at paulstamatiou.com

More from category

Unix: How to Automate Thumbnails
Unix: How to Automate Thumbnails

Use a shell script to automate the creation and uploading of thumbnails. [Read More]

Wordpress: How to Disable Post Revisions
Wordpress: How to Disable Post Revisions

By disabling post revisions in Wordpress, it reduced the database size and allowed the wordpress MySQL database backups [Read More]

Wordpress: How to Target Ads for Different Categories
Wordpress: How to Target Ads for Different Categories

Display different ads in each categories in your Wordpress blog. [Read More]

LBB 2010 Annual Report to Shareholders
LBB 2010 Annual Report to Shareholders

2010 Web Server Report for Laguna Beach Bikini [Read More]

LBB Webserver Status Bulletin

LBB was offline due to corrupted mySQL database. The tables were repaired and the blog is back online [Read More]

Advertisement

LBB Stats