Partition table, each partition on different disk on my HDD

后端 未结 2 1199
遇见更好的自我
遇见更好的自我 2021-01-16 23:45

I have a table that I would like to partition in MYSQL 5.5. That I know how to do, but what I also need is to specify a disk for each of my partitions.

For example,

相关标签:
2条回答
  • 2021-01-16 23:59
    ...
    PARTITION p0
      VALUES LESS THAN (1288562400000)
      DATA DIRECTORY ="C:\\foo\\bar"
      INDEX DIRECTORY ="C:\\foo\\baz",
    ...
    

    Mind that this needs NO_DIR_IN_CREATE to be off

    As user963602 points out, this doesn't directly work on windows due to a MySQL bug, see my comment for a workaround

    0 讨论(0)
  • 2021-01-17 00:00

    InnoDB SE won't support the specifying the disk/mount :(

    0 讨论(0)
提交回复
热议问题