Mongo shell in linux

Any idea to solve this problem please
Command ‘show’ not found, but can be installed with:

sudo apt install mailutils-mh # version 1:3.7-2.1, or
sudo apt install mmh # version 0.4-2
sudo apt install nmh # version 1.7.1-6

It is not clear what you are trying to do.

Post a screenshot that shows exactly ahat you are doing with the issue you are having.

From the little you share so far my guess is that you are typing the command in the wrong place.

i wrote show dbs and didn’t work

This is not the mongo shell.

Yes this is the problem, I couldn’t open mongo shell in vscode

Your screenshot does not show how you tried to start the mongo shell.

What did you try?

Do not try to run a mongo shell command before you get the mongo shell running.

May be you should try Compass.

When I open the shell I see this

Command ‘mongosh’ not found, did you mean:

command ‘mongos’ from deb mongodb-server-core (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3)

Try: sudo apt install

I don’t understand why when i wrote show dbs there’s no mydb with other collections

Most likely you are not connected to the same server.

Can you please tell me how fix it

I do not know the tool you are using.

But whatever method you use to start mongo shell in terminal in the lower right TERMINAL, you have to modify it to specify the same cluster show in the upper left area. It starts with testt.le6eu.

If you use something like

then this variable is not defined correctly in your environment.

This topic was automatically closed after 180 days. New replies are no longer allowed.