【发布时间】:2015-12-18 12:57:29
【问题描述】:
Mongo 客户端 (mongo.exe) 成功连接 mongodb 服务器(mongod.exe)。当我创建数据库时,它创建并显示。但是当我运行这个命令“show dbs;”时,它没有显示任何东西。 检查以下命令行。
C:\mongodb\bin>mongod.exe
2015-12-18T18:22:46.461+0530 I NETWORK [initandlisten] waiting for connections on port 27017
2015-12-18T18:23:01.357+0530 I NETWORK [initandlisten] connection accepted from 127.0.0.1:49260 #1 (1 connection now open)
客户端(mongo.exe)
C:\mongodb\bin>mongo.exe
2015-12-18T18:23:01.325+0530 I CONTROL [main] Hotfix KB2731284 or later update is installed, no need to zero-out data files
MongoDB shell version: 3.2.0
connecting to: test
> show dbs;//initially no database
local 0.000GB
> use helloworld//create new database
switched to db helloworld
> db //current database
helloworld
> show dbs; //no.of databases in mongodb
local 0.000GB
>
【问题讨论】:
标签: mongodb