I am trying to create one GOD user who has access to all the dbs
The following users have been created :
db.createUser( { user: "admin", pwd: "password", roles: [ "userAdminAnyDatabase" ] })
db.createUser( { user: "root", pwd: "password", roles: [ "root" ] })
db.createUser( { user: "mongo", pwd: "password", roles: [ "readWriteAnyDatabase","dbAdminAnyDatabase","clusterAdmin" ]})
I am trying to connect through the following connection URL
mongodb://mongo:password@<mongodb IP>/development_admin
I tried with all the users created but none seemed to work. I always get the following error :
MongoError: auth failed
Is there anything that I am performing wrong here ?