mongo.exe not installed in Version 6.0.0

Viewed 7849

I installed MongoDB community Server from this link. But when I look into C:\Program Files\MongoDB\Server\6.0\bin , I am not able to locate mongo.exe file. I am able to see mongod.exe and mongos.exe. Can someone help. Thank you.

4 Answers

mongo shell (mongo) no longer ships with server binaries. You can download a new shell version (mongosh) from here

Answer from dododo worked for me.

  1. Download Mongo Shell - mongosh from MongoDB Download Center
  2. Extract the contents of the bin from the downloaded zip file to the bin file of your MongoDB folder and run mongosh instead of mongo.

To run the Mongo Shell , Download msi package from the MongoDB Community Download - https://www.mongodb.com/try/download/community The version 6.0 do not ships with server binaries so mongo.exe file wouldn't be shown. So instead download mongo shell - https://www.mongodb.com/try/download/shell After downloading unzip the bin directory in your Original bin directory (You would also need to create a new directory in C: drive named data/db) Now open the bin directory from Mongodb folder, and run mongod.exe After that keeping Mongod.exe running in background open mongosh.exe , Your mongo Shell will be started.

After version 6.0.0 mongo.exe does not get installed to your bin folder so you have to manually install the new MongoDB shell which is called mongosh then you have to add its path to your system variables and then run mongosh --version to see if it got installed. Afterwards if you want to create your own databases and preform operations run "mongosh" in your terminal to connect to a MongoDB instance running on your localhost with default port 27017.

Read the mongoDB documentation for more information:

Related