You can see the article CREATETABLEusers (partition, nameVARCHAR (30) NOTNULLDEFAULT, emailVARCHAR (30) NOTNULLDEFAULT) PARTITIONBYRANGE (uid) (PARTITIONp0VALUESLESSTHAN (3000000) DATADI on the Internet.
Create table users (uid int unsigned not null primary key, name VARCHAR (30) not null default '', email VARCHAR (30) not null default '') partition by range (uid) (PARTITION p0 values less than (3000000) DATA DI
See the article about partition tables on the Internet.
Create table users (
Uid int unsigned not null primary key,
Name VARCHAR (30) not null default '',
Email VARCHAR (30) not null default''
)
Partition by range (uid )(
PARTITION p0 values less than (3000000)
Data directory = '/data0/data'
Index directory = '/data1/idx ',
PARTITION p1 values less than (6000000)
Data directory = '/data2/data'
Index directory = '/data3/idx ',
PARTITION p2 values less than (9000000)
Data directory = '/data4/data'
Index directory = '/data5/idx ',
PARTITION p3 VALUES LESS THAN MAXVALUE
Data directory = '/data6/data'
Index directory = '/data7/idx'
);
"Each partition has its own independent data and index file storage directories. At the same time, the physical disk partitions of these directories may also be completely independent, increase the disk I/O throughput."
In my. ini, how can I set the DIRECTORY for the DATA DIRECTORY And INDEX DIRECTORY attributes to myisam or innodb?