[英]how is mongodb server name selected?
~$ mongo
MongoDB shell version: 2.2.3
connecting to: test
>
why is my server name test
? 为什么要
test
我的服务器名称? and where can I change it? 在哪里可以更改?
'test' is the default database. “ test”是默认数据库。 You can change current db with the help of use command.
您可以在use命令的帮助下更改当前数据库。
use NewDatabaseName 使用 NewDatabaseName
If "NewDatabaseName" is not exist it will be created in Mongo. 如果“ NewDatabaseName”不存在,它将在Mongo中创建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.