How to use the dumped data by mongodump?

前端 未结 6 2060
無奈伤痛
無奈伤痛 2020-12-04 15:03

I have used mongodump to dump my database of mongodb, it created some bson files under dump/mydb

But I don\'t know how to use them. I tried

6条回答
  •  死守一世寂寞
    2020-12-04 15:56

    Use mongorestore. mongoimport works on the output of mongoexport. mongodump & mongorestore work on binary data files while import / export work on json, csv, etc.. (human readable formats)

提交回复
热议问题