Command
mongo --host localhost --port 27017Explanation
Connects to a MongoDB server. Useful as the starting point for any database operations.
Examples
Connect to local MongoDB instance with default port
mongomongo --host localhost --port 27017Connects to a MongoDB server. Useful as the starting point for any database operations.
Connect to local MongoDB instance with default port
mongo