【发布时间】:2012-09-11 14:44:52
【问题描述】:
我在这里缺少什么?导入了 300 个对象,但我用 find() 看不到它们
导入 JSON 文件:
mongoimport --host localhost -db foo -collection bar --file onebigline.json
connected to: localhost
Tue Sep 11 10:36:58 imported 300 objects
MongoDB shell version: 2.2.0
启动Mongo
connecting to: test
> show dbs
foo 0.203125GB
local (empty)
> use foo
switched to db foo
显示从 db foo 导入的 JSON 数据
> db.foo.find()
>
【问题讨论】: