Get econnrefused error on mongosh

installed mongodb and mongoshell, running mongod
When I try to start mongosh I get the error econnrefused
How can I fix this error?

If your mongod is up you should be able to connect
Is your mongod running as service or you started it manually from command line?
Check mongod.log

1 Like

It was looking in wrong location for the db, fixed that and all works now. Thank you.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.