I want to access a mongodb database using mongosh. I’ve made sure using sudo systemctl status mongod that the server is active, but once I want to access it with mongosh, the following error pops up.
Current Mongosh Log ID: 62319666ca0a2501a0140a38
Connecting to: mongodb://127.0.0.1:27017/db_name?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.2.2
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
I’m willing to provide more information if needed, and thank you all for any assistance in advance!