从mysql导出文件:
select item1,item2,item3... from TABLE into outfile 'DATA.csv' fields terminated by ',' optionally enclosed by '' escaped by '' lines terminated by '\r\n';
导入mongodb:
mongoimport -u USER -p PASSWORD -d DB -c COLLECTION -f item1,item2,item3... --type csv --file "DATA.csv"