Error connecting to course database with MongoDB Compass application

I’ve downloaded the application MongoDB Compass.

The course M121 provides a connection string for use with Mongo shell:

mongo "mongodb://,," --authenticationDatabase admin --ssl -u m121 -p aggregations --norc

from this I copied the URI path and entered it into Compass with the following error result:

Screen Shot 2022-04-16 at 2.49.52 PM

Another post suggests a much smaller and unfamiliar URI, but even after adding mongodb:// (mongodb:// the result is the same:

Screen Shot 2022-04-16 at 2.54.29 PM

Another post a few months newer has a link, but ‘Opps! That page is private’.

Finally, the documentation for using the Aggregation Pipeline Builder is not helpful on this subject.

What’s the secret?

1 Like

The connect string for shell and Compass are different

Try this for Compass


1 Like

OOh. That is different…


This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.