mongodb/mongodb-use-db

Select Database

Switch to a specific database

mongodb
database
select

Command

use mydb

Explanation

Switches the current database context. All subsequent operations will be performed on this database.

Examples

Switch to test database

use test