Not able to connect to mongo atlas from Intellij Idea ultimate/ DataGrip

Viewed 2621

I am not able to connect to mongo atlas from intellij idea/ DataGrip, connection test is passing, connection test success image

after that when i click apply and okay, i am getting error saying Driver class "com.mongodb.MongoTimeoutException(no security manager: RMI class loader disabled)"connection error image

1 Answers

I found the problem, the mongo atlas url should be in this format to work mongodb+srv://cluster0-itndz.mongodb.net/BookDb. Before i was trying with mongodb://cluster0-itndz.mongodb.net/BookDb without +srv which was passing the connection test in my Intellij ultimate/DataGrip and giving error i mentioned in the question when i click on apply.

Below is the working format image.

Working connection image

Related