how to access mongodb database with url code example Example: mongo db local connection url mongodb://localhost:27017/mydbname