我正在尝试从 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