I am working on Lab2 of Chapter1. I am not able to connect to Mongodb via IDE.
I have db user created as m001-student. It doesn’t ask me to enter the password as mentioned in the instructions of the lab. I did review related topics to this as well.
I am glad Ramachandra responded to you. Are you still having issue?
All i had to do is instead of giving the connect command in the editor, i have it in the Terminal window which is right below the editor window. Also the gave the Database name as ‘test’.
Plz find the attachment and let me know the name of Cluster, because I didn’t changed name of cluster. plz help me this I am struggling from 2 days on this.
Your cluster is named Cluster0 but the requirements are for it to be called Sandbox. It is best to terminate this cluster and create one with the appropriate name.
You named your cluster as Cluster0. you cannot rename your cluster. Instead terminate the cluster and recreate one an name it as sandbox.
Steps to terminate and recreate the cluster:
Navigate to your clusters and click on three dots(…). you will see Terminate. Click on Terminate.
once you terminate. You will see an option to create cluster.
Follow the steps to create the cluster.
Name your cluster as sandbox.
Hope this helps. Let me know if you still see issues.
The connect string has sandbox as part of the URI. Before you connect, you should name the cluster as sandbox. Once you name your cluster to sandbox, then your connect string will work.
the cluster is named cluster0. The part of the URI where you have sandbox written is default database to which mongo will connect. Please consult https://docs.mongodb.com/manual/reference/connection-string/ for more information about the format of a URI.
The name cluster0 is the default name that Atlas used. You must change this name to sandbox as the requirements ask. Since a cluster cannot be renamed, you will have to terminate this cluster and create a new one with the requested name.