mongodb Database Export csv file

  1. Mongoexport find where the file folder, select the folder, right-shift, selected to play in the command window here
  2. Enter cmd window, enter the following command
  3. mongoexport -d douban -c top250 --csv -f id,place,level,time,quote,name -o douban.csv
  4. d douban c top250 name for the database table name for the new field to be exported to f o is the export table name
  5. The exported file is stored in the bin folder, you will find garbled
  6. Use Notepad to open and then save select UTF-8 that is not an exaggeration to open excel

Guess you like

Origin www.cnblogs.com/changgf/p/12327880.html