I'm using robomongo tool to access mongodb. When I connect into my db then
Show error details
How to fix it?
I'm using robomongo tool to access mongodb. When I connect into my db then
Show error details
How to fix it?
I had the same issue and was able to fix it by removing the full url (for example: mongodb://myuser:mypassword@mongodb-test.mydomain.com/my_database
) in the connection tab and only putting in the mongodb server url: mongodb-test.mydomain.com
.
Next, in the Authentication tab, I checked the Perform authentication checkbox, specified the Database, user name, password.
I also added the database in the Advanded tab just in case and I can now connect without error.
Try inserting only e.g: ds12345.mlab.com
at address bar instead of full [http:// mongodb://<dbuser>:<dbpassword>@...]
and create user to authenticate in mlab.com
and then try connect to it. Something like this:
And then:
Whilst this answer is only partly related to the problem, I want to describe the solution in here.
I had this problem when trying to connect via Robo3T to a cluster of MongoDBs hosted on Atlas. They offer a connection string with the protocol in front (e.g. mongodb+srv://<USER>:<PASSWORD>@database-mongodb.net/admin
). This was a combination of two problems:
mongodb+srv://
in the URI. You should use only the second part (after the @
). Like: database-mongodb.net
.database-shard-00-00-vemhh.mongodb.net
and provide the port to Robo3T. Also, you need to connect via SSL, if you're using MongoDB Atlas (a self-signed certificate configured directly in Robo3T worked for me).Remove only [http://]
worked for me
Get the newer version of the Robo3T client...it can import it automatically from +srv link
I was facing the same problem, but I can solve it by installing Robo 3T 1.3 and import connection details from MongoDB SRV connection string. See this:
Steps to connect remote DB from Robo 3T 1.3
Remember to replace the user in the connection string and the pass at Authentication Tab
The connection string in the picture is dummy by the way