DATABASE » NOSQL » MONGODB

Command

Usage

shell
mongo OPTIONS DBNAME
OptionDescription
--hostSpecifies the name of the host machine where the mongod is running.
--portSpecifies the port where the mongod instance is listening.
-u --usernameSpecifies a username with which to authenticate to a MongoDB database.
-p --passwordSpecifies a password with which to authenticate to a MongoDB database.
--authenticationDatabaseSpecifies the authentication database where the specified --username has been created.