How to connect to aggregations database

i dont understand how to do it. like i already download and install mongodb enterprise. and when i use mogosh in cmd than like this:

Hi @Febrian_Pratama_Putr, welcome to the community.
You are already connected to your database. Please note that your terminal is asking for input with:

Enterprise test>

instead of the default:

C:\Users\ACER>

In case you want to leave the mongosh type “exit” and press enter/return (or Control + C as a keyboard shortcut), only then can you enter your commands in the terminal/os shell.

I hope it helps.

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer

It looks like mongosh is installed rather than mongo.

Try

mongosh with-the-same-arguments-that-you-used-with-mongo

what i need to do is to set path in environment variables to bin file form mongodb

Your first screenshot shows that you can issue the command mongosh. It means you already did

So I repeat my suggestion:

Which means try

mongosh "mongodb://cluster0-shard-00 ... --norc

rather than

mongo "mongodb://cluster0-shard-00 ... --norc

like you did in your last screenshot.

1 Like