i have been facing the same problem, mongo.exe file is missing in bin folder, not getting any way to find the solution to this problem
Welcome to the MongoDB community @ketan_k !
Can you provide some more details on your environment:
- version of MongoDB server installed
- your O/S version
If you are installing MongoDB 6.0 or newer, the legacy mongo
shell is no longer included. Depending on your O/S and install options you may have mongosh
(the new MongoDB shell) and/or MongoDB Compass (an admin GUI including an embedded version of mongosh
).
You can also Download MongoDB Tools from the MongoDB Download Centre if they are not already installed.
Regards,
Stennie
Similar issue:
Same issue here, using VS Code and wants to connect to the mongo shell. Unable to find mongosh.exe in version 6.0. These are files I could find in the “bin” folder:
*PS C:\Program Files\MongoDB\Server\6.0\bin> ls*
*Directory: C:\Program Files\MongoDB\Server\6.0\bin*
*Mode LastWriteTime Length Name*
*---- ------------- ------ ----*
*-a---- 05-07-2022 18:40 1558 InstallCompass.ps1*
*-a---- 12-08-2022 13:41 605 mongod.cfg*
*-a---- 05-07-2022 20:15 55887872 mongod.exe*
*-a---- 05-07-2022 20:15 832090112 mongod.pdb*
*-a---- 05-07-2022 20:22 34573824 mongos.exe*
*-a---- 05-07-2022 20:22 464392192 mongos.pdb*
Hi @DEEPAK_KUMAR12,
You can open the InstallCompass.ps1
PowerShell script to install MongoDB Compass (which includes an embedded version of mongosh
, the new MongoDB Shell) or download the MongoDB Shell from the the MongoDB Download Center: https://www.mongodb.com/try/download/shell
@SAURAV_KUMAR The referenced issue is a similar problem (the legacy mongo
shell is no longer included with MongoDB 6.0) for a different O/S environment. Per Install MongoDB Community Edition on Ubuntu, there is a mongodb-mongosh
Ubuntu package for the new MongoDB shell.
Regards,
Stennie
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
MongoDB Kafka Connector Sink Fails, Source works | 3 | 886 | May 2024 |
Install instructions failing with signature warning | 1 | 676 | May 2024 |
DISK IO increase after 4.4 -> 5.0 -> 6.0 upgrade | 0 | 275 | Aug 2024 |
mongoDB community server Installation is failing using msi.exe | 0 | 48 | Nov 2024 |
MongoDB 8 with Windows Server 2019 | 4 | 47 | Mar 24 |