1、mongodb导出数据表文件 mongoexport -d dbs -c collection -o /root/file.csv --type csv -f “_id,name” 2、mongodb导入数据表文件 mongodump -d dbs -c collection -o /root/file.csv --type csv -f “_id,name”