我试图通过过滤日期范围来使用远程连接运行 mongoexport。然而,一个非常简单的查询,我遇到了位置错误问题。我已经阅读了大多数有关它的帖子,进行了时代转换等。但完全遇到了障碍。希望这里有人能弄清楚我做错了什么。
以下是我的命令和错误消息:
C:\ mongoexport --host 1.1.1.111:1111 --db IQ -u user -p password --collection CallLog --out calllog.json --query '{"Call.StartTime":{"$gte":new Date(1411066005000),"$lte": new Date(1406918805000)}}'
Error parsing command line: too many positional options
try 'mongoexport --help' for more information
从 mongo 连接和运行查询时,我们使用 authenticationDatabase 选项。也使用它尝试了上述方法。但同样的错误。
我在这里做错了什么?
提前非常感谢。
问候, 西马克