Ch 0: Alternative to using MongoDB Atlas Cluster

Hello,

I created an Atlas Cluster but unfortunately I am not able to connect to it from shell. I get the following error
2019-10-18T14:30:58.288-0400 E QUERY [js] Error: connect failed to replica set mflix-shard-0/mflix-shard-00-01-zvu0q.mongodb.net:27017,mflix-shard-00-02-zvu0q.mongodb.net:27017,mflix-shard-00-00-zvu0q.mongodb.net:27017 :
connect@src/mongo/shell/mongo.js:341:17

I believe it is due to the firewall settings since I cannot access http://portquiz.net:27017/.
Unfortunately, I cannot change the firewall settings. Can I use a local database instead of Atlas for the course and if so, how do I download the sample_mflix dataset and what would be the connection settings to use in the mflix/src/main/resources application.properties file?

Hey @Angeline_95507

For the M220 courses you would be able to launch a local mongod. Just import the data set to your local instance and make your the connection string in your environment file points to your local mongod.

You would follow the outline in the README.rst file still but have the connection string pointing to your local db

https://docs.mongodb.com/manual/administration/install-community/#install-mongodb-community-edition

If you need more help feel free to ask.

1 Like