“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 <[email protected]> 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 <[email protected]> > 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 \\ [email protected] > +44 7 486 486 505 \\ www.maxim.abalenkov.uk
