Read Time:14 Second
Switch Databases in MongoDB
To display the database you are using, type db
:
db
The operation should return test
, which is the default database.
To switch databases, issue the use <db>
helper, as in the following example:
use <database>
Average Rating