MongoDB: How to find the exact version of installed MongoDB

Just run your console and type:

db.version()

https://docs.mongodb.com/manual/reference/method/db.version/


To check MongoDB version use the mongod command with --version option.

To check the MongoDB Server version, Open the command line via your terminal program and execute the following command:

Path: C:\Program Files\MongoDB\Server\3.2\bin
Open Cmd and execute the following command:
mongod --version
To Check MongoDB Shell version:
mongo --version


Option1:

Start the console and execute this:

db.version()

Option2:

Open a shell console and do:

$ mongod --version

It will show you something like

$ mongod --version
db version v3.0.2


mongo --version

MongoDB shell version: 2.6.10

mongod --version

db version v2.6.10

mongo

MongoDB shell version: 2.6.10
connecting to: test

db.version()

2.6.10

Tags:

Mongodb