mysql 插入大数据量和分区

来源:互联网 发布:淘宝质量问题 编辑:程序博客网 时间:2024/04/30 17:54
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两种分类技术
0 0