是一只有梦想的咸鱼
2021-09-15 11:11
采纳率: 100%
浏览 11

mongoimport导入数据不成功

PowerShell里的运行结果如下:

img


这里显示导入 0 documents成功,怎么解决?

图片转代码服务由CSDN问答提供 功能建议

PSE:mongo-work>headprimer-dataset
head:无法将“head”项识别为cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置行:1字符:1
+head primer-dataset
    + CategoryInfo ObjectNotFound:Chead:String],CommandNotFoundException
    十 FullyQualifiedErrorId 1:CommandNotFoundException
PSE:mongo-work> Ls
    目录:E:mongo-work
Mode LasthriteTime LengthName
                2021/9/10 10:47 d- primer-dataset
                2021/9/10 10:48 Zips.json
                2021/9/10 10:34 1607490 a primer-dataset.zip
                2621/9/16 10:36 a 663706zips.json.tar.gz
PSE:mongo-work>mongoimport
2021-09-15T00:26:01.409+0800 no collection specified
2021-09-15T00:26:01.441+0800 using filename ascoLlection
2021-09-15T00:26:01.441+0806 error validating settings:invalid collection name:collection name cannot be an empty string
PSE:mongo-work>mongoimport dbprimerprimer-dataset.json
2021-09-15T00:28:11.442+0800 no collection specified
2021-09-15T00:28:11.475+0806 usingfilename primer-datasetascollection
2021-09-15T00:28:12.116+0806 Failed:open primer-dataset.json:The system cannot find the file specified.
2021-09-15T00:28:12.116+0806 document(s)imported successfully.document(s)failed to import
  • 收藏

相关推荐 更多相似问题