DATABASE » NOSQL » MONGODB
Command
Usage
shell
mongo OPTIONS DBNAME
Option | Description |
---|---|
--host | Specifies the name of the host machine where the mongod is running. |
--port | Specifies the port where the mongod instance is listening. |
-u --username | Specifies a username with which to authenticate to a MongoDB database. |
-p --password | Specifies a password with which to authenticate to a MongoDB database. |
--authenticationDatabase | Specifies the authentication database where the specified --username has been created. |