Chapter 1 - Lab: Creating First Application User

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:// 2021-02-19T14:37:16.591+0000 E QUERY [js] Error: couldn't connect to server, connection attempt failed: SocketException: Error connecting to :: 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