当前位置: 动力学知识库 > 问答 > 编程问答 >

mongodb - How to import json file to mongo through mac terminal?

问题描述:

I'm using this command

mongoimport --db test --collection bankdata --drop --file bank_data.json --port 27017 --host 127.0.0.1

to import a json file, but when I do it I get this message

Failed: error unmarshaling bytes on document #0: JSON decoder out of sync - data changing underfoot?

2016-05-24T08:00:31.552-0600 imported 0 documents

分享给朋友:
您可能感兴趣的文章:
随机阅读: