1, open a command line, enter the bin file in the path we mongodb installation folder
2, we use the method mongoexport bin folder to export,
mongoexport -d myDB -c user -f _id,name,password,adress --type=csv -o ./user.csv
- -d database marked
- -c marked Data Sheet
- -f need to extract the field separated by commas
- -o output path