skip to Main Content

Javascript – MongoDB ECCONREFUSED when connecting to MongoDB Compass

I am trying to learn Node.JS from scratch. I am trying to connect index.js to MongoDB compass when I get the error: MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 at _handleConnectionErrors (/mnt/c/Users/user/Desktop/Programming/website/learningNode/mongoose/node_modules/mongoose/lib/connection.js:897:11) at NativeConnection.openUri (/mnt/c/Users/user/Desktop/Programming/website/learningNode/mongoose/node_modules/mongoose/lib/connection.js:848:11) { reason: TopologyDescription { type: 'Unknown', servers: Map(1)…

VIEW QUESTION

How to make use the PASSWORD with the official postgres docker image?

Trying to make use of the official postgres docker image with: docker run --rm -d --name my-postgres --network my-network -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=mysuperduperlongpwstring -e POSTGRES_DB=postgres -v /path/to/postgres/data/:/var/lib/postgresql/data postgres However, when creating postgres connection with Go, psqlInfo := fmt.Sprintf( "host=%s port=%s…

VIEW QUESTION
Back To Top
Search