在mongoexport中更改dbpath。使用dbpath显示:dbexit并导出0记录

时间:2015-02-02 15:06:06

标签: json mongodb mongoexport

我正在尝试从 mongoDB 导出 JSON 文件。如果我不使用--dbpath选项,则记录正在导出。 但是,如果我使用dbpath,它显示为:

C:\ mongodb \ bin> mongoexport --db aman --collection saved --dbpath D: - out aman.json 导出0条记录

2015-02-02T20:32:37.922+0530 [tools] dbexit:
2015-02-02T20:32:37.925+0530 [tools] shutdown: going to close listening sockets...
2015-02-02T20:32:37.925+0530 [tools] shutdown: going to flush diaglog...
2015-02-02T20:32:37.927+0530 [tools] shutdown: going to close sockets...
2015-02-02T20:32:37.927+0530 [tools] shutdown: waiting for fs preallocator...
2015-02-02T20:32:37.928+0530 [tools] shutdown: closing all files...
2015-02-02T20:32:37.929+0530 [tools] closeAllFiles() finished
2015-02-02T20:32:37.930+0530 [tools] shutdown: removing fs lock...
2015-02-02T20:32:37.930+0530 [tools] dbexit: really exiting now

0 个答案:

没有答案