hash 分区
create table t1(
id int
) engine=myisam
partition by hash(id)
partitions 5
表示分5个区
create index in_id on t2(id);
创建索引
insert into t2 select * from t2;
watch -n1 ls -h //不停的查看他的结果
\d // 改变sql执行的分号为//
\d ;表示分号结局
innodb只能设置独立的表空间才可能成功
myisam innobd两种分类技术
create table t1(
id int
) engine=myisam
partition by hash(id)
partitions 5
表示分5个区
create index in_id on t2(id);
创建索引
insert into t2 select * from t2;
watch -n1 ls -h //不停的查看他的结果
\d // 改变sql执行的分号为//
\d ;表示分号结局
innodb只能设置独立的表空间才可能成功
myisam innobd两种分类技术