I get an error when trying to connect to the db:“SCRAM-SHA-1” atlas error. I created a new user for the atlas cluster I used in the first class. Not sure why it’s giving me this authentication failed error. Can’t connect to server
Are you using the correct credentials?
In the second command userid should be m001-student
IDK. I just used compass to install the json documents via folder import. I hate doing command line stuff.
Were you able to resolve this issue?
If you are still getting the error, please share the complete connection string to your atlas cluster with the password.
I’m trying to use the handouts but it just starts and shutdowns
for example the how_data_is_stored_on_disk.sh file opens and try’s to connect but fails and shuts down.
I’m just using the same connection I’ve used with previous courses
mongo “mongodb+srv://sandbox.dvzjc.mongodb.net/test” --username m001-student
I can connect using this via mongoshell. Not sure why the handouts doesn’t work. I could open the json files and manually enter the commands but idk
I think the .sh script has a BUG
Please check this link
What error are you getting when you try to run the script?
Cant connect. It can’t find the /data directory. Don’t have the permission to create a directory. Then it just closes.
What is your os?Macos?
I think they removed access to /data/db
The script uses default dbdirpath as /data/db
Since it is not accessible it is failing
You can use some other dir like your homedir
Try for one of the command.If it works fine you can modify the .sh script
or if you have a VM from previous course you can use that