Search code examples
mysqlmyisamdata-loss

MySQL MyISAM data loss possibilities?


Many sites and script still use MySQL instead of PostgreSQL. I have a couple low-priority blogs and such that I don't want to migrate to another database so I'm using MySQL.

Here's the problem, their on a low-memory VPS. This means I can't enable InnoDB since it uses about 80MB of memory just to be loaded. So I have to risk running MyISAM.

With that in mind, what kind of data loss am I looking at with MyISAM? If there was a power-outage as someone was saving a blog post, would I just lose that post, or the whole database?

On these low-end-boxes I'm fine with losing some recent comments or a blog post as long as the whole database isn't lost.


Solution

  • You might find the following MySQL Performance article of interest:

    For me it is not only about table locks. Table locks is only one of MyISAM limitations you need to consider using it in production. Especially if you’re comming from “traditional” databases you’re likely to be shocked by MyISAM behavior (and default MySQL behavior due to this) – it will be corrupted by unproper shutdown, it will fail with partial statement execution if certain errors are discovered etc...

    http://www.mysqlperformanceblog.com/2006/06/17/using-myisam-in-production/