对于MyISAM:
a.alter table table_name disable keys
b.loading data
c.alter table table_name enable keys
对于Innodb:
a.将要导入的数据按照主键排序
b.set unique_checks=0,关闭唯一性校验
c.set autocommit=0,关闭自动提交
b.set unique_checks=0,关闭唯一性校验
c.set autocommit=0,关闭自动提交
对于MyISAM:
a.alter table table_name disable keys
b.loading data