[mongodb: mongo command]

Maxim Abalenkov maxim.abalenkov at gmail.com
Tue May 16 14:38:26 UTC 2023


Dear all,

Thank you for your replies so far. Would you please tell me, what Mac port contains the newer MongoDB shell ‘mongosh’? It’s not present in the ‘mongodb’ port. I couldn’t find ‘mongosh’ via the ‘port search’ command either. Thank you very much!

—
Best wishes,
Maxim

Maxim Abalenkov \\ maxim.abalenkov at gmail.com
+44 7 486 486 505 \\ www.maxim.abalenkov.uk

> On 16 May 2023, at 14:28, Felipe Gasper <felipe at felipegasper.com> wrote:
> 
> “mongos” is MongoDB’s proxy for sharded clusters.
> 
> “mongo” is MongoDB’s legacy shell, which in newer MongoDB releases (6+) is no longer distributed.
> 
> “mongosh” is MongoDB’s new shell. Prefer it whenever possible.
> 
> -FG
> 
> 
>> On May 16, 2023, at 9:24 AM, David Herron <david at davidherron.com> wrote:
>> 
>> mongod is the database server
>> 
>> mongos is probably the shell - the CLI user interface to the database
>> 
>> Look at MongoDB-dot-com for documentation
>> 
>> + David Herron
>> 
>> 
>> 
>> On Tue, May 16, 2023 at 1:11 PM Maxim Abalenkov <maxim.abalenkov at gmail.com> wrote:
>> Dear all,
>> 
>> How are you? I hope all is well with you. I need your help please. I would like to access a MongoDB database using a command line similar to:
>> 
>>  mongo --host localhost --port 27018 --username ... --password ... --authenticationDatabase …
>> 
>> I installed the ‘mongodb’ Mac port. However, I do not see a ‘mongo’ command. There are ‘mongod’ and ‘mongos’, but no ‘mongo’. Would you please tell me, what is the difference between the ‘d’ and ’s’ commands and how do I obtain the ‘mongo’ itself? Thank you and have a good day ahead!
>> 
>>>> Best wishes,
>> Maxim
>> 
>> Maxim Abalenkov \\ maxim.abalenkov at gmail.com
>> +44 7 486 486 505 \\ www.maxim.abalenkov.uk
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20230516/1c933ff6/attachment.htm>


More information about the macports-users mailing list