[mongodb: mongo command]

Felipe Gasper felipe at felipegasper.com
Tue May 16 13:28:08 UTC 2023


“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



More information about the macports-users mailing list