A MySQL database creates a number of different data files in the mysql data directory (typically /var/lib/mysql). The following are the differences between the data files created:

File Extension Purpose
.frm table definition
.MYD table data
.MYI table indices

I believe these files are created for both MyISAM and InnoDB table types because the MySQL documentation references these types with respect to MyISAM and I definitely see them on my InnoDB tables.

I couldn’t find this information directly in the MySQL documentation and google wasn’t much help either so hopefully this post will save someone else some search effort.

If you are like me and neglected your wordpress blog for a ridiculous amount of time you probably have a ridiculous amount of comments awaiting moderation. Unfortunately, wordpress only displays 20 comments per page so processing 10,000+ spam comments will take forever! And clicking on “Check For Spam” doesn’t seem to be able to handle massive amounts of pending comments. Therefore, after spending a couple of hours deleting comments 20 at a time I decided to find a better way. Continue reading »

© 2012 rootsmith blog Suffusion theme by Sayontan Sinha