Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't connect to database! #4

Open
ghost opened this issue Feb 28, 2022 · 2 comments
Open

can't connect to database! #4

ghost opened this issue Feb 28, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 28, 2022

Server is running on port 8080.
Cannot connect to the database! MongooseServerSelectionError: connect ECONNREFUSED ::1:27017

@mdmuhtasimfuadfahim
Copy link

This is working perfectly. If you are using Windows then use "mongodb://0.0.0.0:27017/bezkoder_db" instead of "mongodb://localhost:27017/bezkoder_db". Hope this solves the problem.

@skumawatdev
Copy link

It works with this "mongodb://mongodb:27017/bezkoder_db" instead of "mongodb://localhost:27017/bezkoder_db"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants