mysql大数据导出导入

1)导出

select * from users into outfile '/tmp/users.txt';
或 select * from users where sex=1 into outfile '/tmp/users.txt';

 

 

2)导入

load data infile '/tmp/users.txt' into table users;

 

 

注意:此方法只能导出导入表数据,表结构需要另外处理。

posted @ 2016-03-15 20:14  Tiac  阅读(1014)  评论(0编辑  收藏  举报