Unable to show dbs

December 20, 2017 393 views
MongoDB Ubuntu 16.04

Hello,

I followed this tutorial to setup mongodb , all seems working correctly. However when i put following commands :

> show dbs 
2017-12-20T21:40:26.799+0000 E QUERY    [thread1] Error: listDatabases failed:{
    "ok" : 0,
    "errmsg" : "not authorized on admin to execute command { listDatabases: 1.0 }",
    "code" : 13,
    "codeName" : "Unauthorized"
} :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
Mongo.prototype.getDBs@src/mongo/shell/mongo.js:62:1
shellHelper.show@src/mongo/shell/utils.js:781:19
shellHelper@src/mongo/shell/utils.js:671:15
@(shellhelp2):1:1

Someone could say me why?

Thank you

Be the first one to answer this question.