mongo find查不到数据
windows系统下
mongo 能正常启动 http://127.0.0.1:27017/
mongo能打开
提示:
MongoDB shell version v3.4.1
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.1
Server has startup warnings:
2017-01-12T13:52:31.812+0800 I CONTROL [initandlisten]
2017-01-12T13:52:31.814+0800 I CONTROL [initandlisten] ** WARNING: Access control is not
enabled for the database.
2017-01-12T13:52:31.818+0800 I CONTROL [initandlisten] ** Read and write access
to data and configuration is unrestricted.
2017-01-12T13:52:31.822+0800 I CONTROL [initandlisten]
2017-01-12T13:52:31.824+0800 I CONTROL [initandlisten] Hotfix KB2731284 or later update i
s not installed, will zero-out data files.
2017-01-12T13:52:31.827+0800 I CONTROL [initandlisten]
用 use imooc
显示 switched to db imooc
可之后再用 show tables,db.users.find({}) 都不返回任何值,怎么办?