Data [path] Rollo of MongoDB in Python's export to excel CSV file

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

 

  1. -d database marked  
  2.  -c marked Data Sheet  
  3.  -f need to extract the field separated by commas  
  4.  -o output path  

Guess you like

Origin www.cnblogs.com/rollost/p/11425164.html