not authorized on admin to execute command replset

相關問題 & 資訊整理

not authorized on admin to execute command replset

isMaster() use admin db. ... listDatabases failed: "ok" : 0, "errmsg" : "not authorized on admin to execute command listDatabases: 1.0 }", "code" ..., I was also scratching my head around the same issue, and everything worked after I set the role to be root when adding the first admin user., The guide you're following is not very helpful; it misses out the crucial step that you need to authenticate your connection, once you've created ..., Your "admin" database user only has the userAdminAnyDatabase role. However, the clusterManager role is needed to execute the ..., ... dbs 2015-05-09T21:57:03.176-0700 E QUERY Error: listDatabases failed: "ok" : 0, "errmsg" : "not authorized on admin to execute command ...,Let's try this: Connect to your DO droplet. In your /etc/mongod.conf, comment out 'security' and restore bindIp to value 127.0.0.1. Restart your mongod instance. , I think you can use the role as root for Ubuntu. Try the below query. use admin db.createUser( user: "admin", pwd: "password", roles: [ role: ...,Enable security authorization (e.g. it is enabled in mongod.conf ) and ensure that you have created an admin user (which you will use to create all your other ... , Now if you run command "db.stats()", or "show users", you will get error "not authorized on admin to execute command..." > db.stats() "ok" : 0, ...

相關軟體 MongoDB 資訊

MongoDB
MongoDB 是一個免費且開放源碼的跨平檯面向文檔的數據庫程序。分類為 NoSQL 數據庫程序,MongoDB 使用類似 JSON 的文檔與模式。它為使用 MongoDB 包括數據庫開發人員和 DBA 的任何人提供了豐富的 GUI 工具。主要功能包括:全功能嵌入 MongoDB Shell,用戶友好的 Map-Reduce 操作編輯器,創建 / 刪除數據庫,管理集合及其索引的能力,用戶友好的 G... MongoDB 軟體介紹

not authorized on admin to execute command replset 相關參考資料
2016.10.13 mongo故障小结-WorkNote-51CTO博客

isMaster() use admin db. ... listDatabases failed: "ok" : 0, "errmsg" : "not authorized on admin to execute command listDatabases: 1.0 }", "code" ...

https://blog.51cto.com

MongoDB - admin user not authorized - Stack Overflow

I was also scratching my head around the same issue, and everything worked after I set the role to be root when adding the first admin user.

https://stackoverflow.com

mongodb replica setup: not authorized on local to execute ...

The guide you're following is not very helpful; it misses out the crucial step that you need to authenticate your connection, once you've created ...

https://stackoverflow.com

MongoDB Unauthorized: replSetGetConfig - Stack Overflow

Your "admin" database user only has the userAdminAnyDatabase role. However, the clusterManager role is needed to execute the ...

https://stackoverflow.com

MongoDB 基础(六)安全性(权限操作)_KK 笔记:专注数据 ...

... dbs 2015-05-09T21:57:03.176-0700 E QUERY Error: listDatabases failed: "ok" : 0, "errmsg" : "not authorized on admin to execute command ...

https://blog.csdn.net

MongoDB: All commands spit out "not authorized on admin to ...

Let's try this: Connect to your DO droplet. In your /etc/mongod.conf, comment out 'security' and restore bindIp to value 127.0.0.1. Restart your mongod instance.

https://dba.stackexchange.com

MongoDB: Not authorized on admin to execute command ...

I think you can use the role as root for Ubuntu. Try the below query. use admin db.createUser( user: "admin", pwd: "password", roles: [ role: ...

https://stackoverflow.com

MongoError: not authorized on local to execute command ...

Enable security authorization (e.g. it is enabled in mongod.conf ) and ensure that you have created an admin user (which you will use to create all your other ...

https://stackoverflow.com

show dbs gives "Not Authorized to execute command" error ...

Now if you run command "db.stats()", or "show users", you will get error "not authorized on admin to execute command..." > db.stats() "ok" : 0, ...

https://stackoverflow.com