Mysql Partition Table path settings

Source: Internet
Author: User

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?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.