嗨,我正尝试使用此comande行导出我的mongo集合之一:mongoexport --host 127.0.0.1 --port 3001 --db meteor --collection subs --out subs.json
但我收到此错误,我不明白为什么,因为每个帖子都使用此命令,并且对他们有用2017-11-14T10:23:31.562+0100 E QUERY [thread1] SyntaxError: missing ; before statement @(shell):1:14
最佳答案
mongoexport
必须从OS命令 shell 运行,而不是在mongo shell中运行。