How to access MongoDb with Mongo Shell client

What is Mongo Shell?

Mongo shell is a command line interface between user and database. You can connect to your MongoDB server using this shell and manage your databases and collections. You can also perform the administrative tasks on MongoDB.

Connect to MongoDB Shell

Type mongo on your system terminal. It will automatically connect to your local MongoDB server running on port 27017.

MongoDB shell version v3.4.4
connecting to: mongodb://
MongoDB server version: 3.4.4
You need to specify the hostname to connect remote database. Also, specify port if MongoDB is running on different port.
 mongo --host --port 27017

MongoDB shell version: 2.6.4
connecting to:

Exit the mongo Shell

Use quit() function or press CTRL+C to quit from mongo shell.