Need help with mongodb
There is this error when connecting to db :-
Error while connecting to db querySrv ECONNREFUSED _mongodb._tcp.cluster0.ygopfxf.mongodb.net
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1166090206554882048/Screenshot_1076.png)
1 Reply
The format of URLs in general is
protocol://username:password@hostname/path?query
. You seem to be missing the @
between your authentication info & the hostname.
So, maybe mongodb+srv://ramol:bahiks@cluster0.ygopfxf.mongodb.net
?
Did you copy the URL from somewhere?