thkang
thkang

Reputation: 11543

how is mongodb server name selected?

~$ mongo
MongoDB shell version: 2.2.3
connecting to: test
>

why is my server name test? and where can I change it?

Upvotes: 1

Views: 1231

Answers (1)

Victoria Malaya
Victoria Malaya

Reputation: 516

'test' is the default database. You can change current db with the help of use command.

use NewDatabaseName

If "NewDatabaseName" is not exist it will be created in Mongo.

Upvotes: 1

Related Questions