Chapter 1 - Lab: Creating First Application User

https://university.mongodb.com/mercury/M103/2021_February_9/chapter/Chapter_1_The_Mongod/lesson/5e545430abd94c50a0f8ef94/problem

Hey there! I can’t seem to log into Mongo for some reason. As I understand it, mongod is already running and all I need to do is type: mongo admin -u m103-admin -p m103-pass, but this keeps giving me the following error

MongoDB shell version v4.0.5 connecting to: mongodb://127.0.0.1:27017/admin?gssapiServiceName=mongodb 2021-02-19T14:37:16.591+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused : connect@src/mongo/shell/mongo.js:328:13 @(connect):1:6 exception: connect failed

Yes it does. But from the lab description:

already running in the background on port 27000

Yes! That was it. I can’t believe I missed that haha

Thanks!