WordPress database error: errno 13

[tag]Error[/tag] messages are always a worrying sight, but thankfully this one was easily dealt with. Here’s the message I was seeing today on my newly upgraded to [tag]Wordpress v2.1[/tag] blog:

[tag]WordPress database error[/tag]: [Can't find file: './homedir/wp_comments.frm' (errno: 13)] SELECT foo FROM bar WHERE ...

A quick google tells me that it’s a [tag]MySQL error[/tag], and can be fixed with a simple [tag]MySQL[/tag] command REPAIR TABLE wp_comments; (replacing wp_comments with the relevant table name if that’s not the right one). Alternatively you can do a repair within [tag]phpMyAdmin[/tag] if GUIs are your thing.

I wonder whether this was related to my playing around with different themes, and the associated compromise of database integrity, or if it was related to the [tag]upgrade[/tag] from [tag]2.0.7[/tag] to [tag]2.1[/tag]…

Leave a Reply