Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB and Robomongo: Can't connect (authentication)

Tags:

I have the following user:

{     "_id" : "admin.root",     "user" : "root",     "db" : "admin",     "roles" : [         {             "role" : "root",             "db" : "admin"         }     ] } 

And for my database:

{     "_id" : "mydb.mydbDbOwner",     "user" : "mydbDbOwner",     "db" : "mydb",     "roles" : [         {             "role" : "dbOwner",             "db" : "mydb"         }     ] } 

I can't connect via Robomongo on localhost:

Enter image description here

The same goes for...

Database: mydb User Name: root  Database: mydb User Name: mydbDbOwner 

How can I fix this problem?

like image 782
basickarl Avatar asked Mar 29 '15 02:03

basickarl


2 Answers

Robomongo 0.8.x doesn't have support for the new SCRAM-SHA-1 authentication which was the default authentication method added in MongoDB 3.0.

Robomongo 0.9.0 RC4 (Feb 2016) added support for SCRAM-SHA-1, but if you are using a modern version of MongoDB server you should upgrade to the latest version of Robomongo (now Robo3T) currently available.

There is also an officially maintained free GUI, MongoDB Compass, which is more actively updated than Robo3T. MongoDB Compass 1.22+ (Sept 2020) includes an embedded MongoDB shell.

like image 56
Stennie Avatar answered Oct 20 '22 14:10

Stennie


I was experiencing exactly the same issue on Mac. I removed the Robomongo client and download the latest version from their website. It just works :)

like image 21
Athar Avatar answered Oct 20 '22 15:10

Athar