WordPress database error: [Can't open file: 'wp_comments.MYI' (errno: 144)]

Thanks Neil for pointing out that I had a problem on my WordPress comments form. The error went as follows:

WordPress database error: [Can't open file: 'wp_comments.MYI' (errno: 144)]

After searching on Google for about 30 seconds, I found that my database had become corrupt. I went into phpMyAdmin via my control panel to find that within the Operations tab in the admin itself, I couldn’t click "Repair" to fix the table. Great!

After another 10 seconds of Google found me an SQL query to run which would repair the selected table in question. I ran the following query directly into the SQL query window:

REPAIR TABLE wp_comments

And it worked. Not sure how my table become corrupt, maybe its because of all the hundreds of trackback spam I keep receiving. I must do something to fix that soon…

 

11 comments about WordPress database error: [Can't open file: 'wp_comments.MYI' (errno: 144)]

  1. Adcuz says:

    I am swamped with trackback spam! I can’t keep up with it and as much as I mark spam Akismet still fails.

    I’ve had enough of it.

  2. Daze says:

    Ads, I know what you mean.

    Go into wp-admin > Options > Discussion > Turn ON Comment author must have a previously approved comment

    This at least removes them publicly. Then just login to your wp-admin every few days to Mark as spam and approve where needed.

  3. Adcuz says:

    Ahh! great tip.

    Cheers mate.

    (Why didn’t I think of that before?)

  4. Collin says:

    And then BOTH of you get Spam Karma 2 to run alongside Akismet. Works a treat for me. :)

  5. Adcuz says:

    OK, i’ll give that a try as well.

  6. Daze says:

    Quality, thanks Collin. Mine is holding back OK at the moment, its finding the time to do anything to my blog at the moment which is the tricky part!

  7. Beachbum says:

    I tried your tip, but it says
    beachbum_blog.wp_comments repair error Can’t find file: ‘wp_comments.MYI’ (errno: 2)

    What to do? Please email me, quite desperate to solve this!

    Cheers
    BB

  8. Daze says:

    Beachbum – not sure. The error you’ve got sounds like a non-standard WP error to me, but I can’t be certain. I am not much of an expert at WP, try asking on their website.

  9. Cory says:

    Worked like a charm, thank you!!!

  10. [...] UPDATE: Comments fixed. I was getting a reporting a missing sql comments file. The problem and the solution providerd here fixed the issue. Thanks dazecoop.co.uk/03-04-2007/word...... [...]

  11. autoverleih says:

    Thanks for the informative post.. and thanks for adding our comment to the blog.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>