使用mongoimport将json从文件导入到mongodb
我有这样的json_file.json: [ { "project": "project_1", "coord1": 2, "coord2": 10, "status": "yes", "priority": 7 }, { "project": "project_2", "coord1": 2, "coord2": 10, "status": "yes", "priority": 7 }, { "project": "project_3", "coord1": 2, "coord2": 10, "status": "yes", "priority": 7 } ] 当我运行以下命令将此导入到mongodb中时: mongoimport --db my_db --collection my_collection --file json_file.json 我收到以下错误: Failed: error …