Someone at work pointed out to me this blog post about what to do when disk partitions housing MySQL databases fill up, with the caption, “An idea for [the MySQL 5.1 Partitioning] Docs?”
My reply was, “Nope”.
Well, I was wrong. In a way. This guy’s talking about disk partititions, not partitioned tables. And using symlinks to point to data or database directories is not particularly new or exciting. However, partitioning in MySQL 5.1 provides a kind of cool new way to move table data and index files pretty easily.
The DATA DIRECTORY and INDEX DIRECTORY
options have been around for CREATE TABLE for quite
some time, but they’re not supported for ALTER TABLE
- if you try, this is what happens:
mysql> …[Read more]