I am new to MongoDB. I already read the docs and MongoDB Community Edition.
It is working
but, I tried to run the "mongo" command: It is not working!!
…So i did:
sudo apt install mongodb-clients
(I saw after that this command uninstalled the mongodb server, which i had to install again)
When it finished, i tried again the "mongo" command. It is not working !!
How do I solve this?
2
Answers
You may want to try "mongosh" command.
As specified on documentation you provided.
You need a client in order to interact with mongoDB deployment such as mongosh or Compass.
Hope It helps.
The
mongodb-server
and themongodb-clients
debian packages were for MongoDB 3.x, maintained by Ubuntu.Since MongoDB 4.x, MongoDB provide their own debian packages, but they named them
mongodb-org-server
,mongodb-mongosh
andmongodb-cli
. The client commandmongo
is split into two different commandsmongocli
andmongosh
.