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.
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.
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.
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:
install mongosh: https://www.mongodb.com/docs/mongodb-shell/install/
The mongosh shell vs the old mongo shell: https://www.mongodb.com/docs/mongodb-shell/
Connect to a Deployment: https://www.mongodb.com/docs/mongodb-shell/connect/