How to get a mongodb icon in vs code terminal?

I have mongo installed and use mongodb vs code extension but can’t use it via terminal.

dmitriymalayev@Dmitriys-Mini mongo % mongosh
Current Mongosh Log ID: 62183d6dd9d3f…
Connecting to: mongodb://127.0.0.1:2…
directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.1.9
MongoNetworkError: connect ECONNREFUSED 127.0.0…

I am not sure what you mean by “can’t use it via terminal”.

It looks like you are trying to connect to a local MongoDB with mongosh and that the error you are getting makes me think that the local MongoDB is not running.

1 Like