1. 导出数据库:
mongoexport -d master -c reports -o no.json --type json -f "title,name" -q '{"name":"vic"}' -u 账户 -p 密码 --authenticationDatabase admin
-d :数据库名
-c :collection名
-o :输出的文件名
--type : 输出的格式,默认为json
-f :输出的字段,如果-type为csv,则需要加上-f "字段名"
-q : 查询条件