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