We are using MONGO DB with PHP(Version 7.xx) and recently we applied authentication to MongoDB.
We have used config "mongodb://IP address:Port" to connect to MongoDB, and we changed it to "mongodb://user_name:password@IP:PORT".
When I try to connect DB URL with DB NAME like "mongodb://user_name:password@IP:PORT/DB NAME", It's work. but when without DB NAME like "mongodb://user_name:password@IP:PORT", Authentication failed error returend.
I'd like to know How to connect to All DBS by MongoDB URL.
Any helps are welcome.