error: couldn't add user: not authorized on admin

相關問題 & 資訊整理

error: couldn't add user: not authorized on admin

then start without --auth like mongod --config /usr/local/etc/mongod.conf ... The idea is you have to create user under "admin" database with all the ROLES ... ,Below command says, you have created admin user and password. Once you create the admin user and password, Mongo will not allow you to do any schema update as normal a admin user which you used to login previously. Use newly created admin user and passwor,Following advice of @JohnPetrone I added readWrite role to my admin user with grantRolesToUser ... I was running my MongoDbService (that was started without any error) but I ... server's logs and noticing that your server couldn't bind to the desi, roles 中的db 参数是必须的,不然会报错:Error: couldn't add user: Missing expected ... "errmsg" : "not authorized on admin to execute command ..., 2014-10-16T10:40:41.904+0800 Error: couldn't add user: not ... add user: not authorized on admin to execute command createUser: "admin", ...,期间,为了给另外一个普通(而非admin)数据库gridfs,去添加支持currentOp的权限,在还没 ... mongodb – Error: couldn't add user: not authorized on test to execute ... ,use admin db. ... security: authorization: disabled # keyFile: /opt/mongodb/keyfile ... After this you can add the user and role that you want from the shell. db.

相關軟體 MongoDB 資訊

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

error: couldn't add user: not authorized on admin 相關參考資料
Error: couldn't add user: not authorized on test to ... - Stack Overflow

then start without --auth like mongod --config /usr/local/etc/mongod.conf ... The idea is you have to create user under "admin" database with all the ROLES ...

https://stackoverflow.com

Error: couldn't add user: not authorized on test to execute ...

Below command says, you have created admin user and password. Once you create the admin user and password, Mongo will not allow you to do any schema update as normal a admin user which you used to log...

https://stackoverflow.com

MongoDB - admin user not authorized - Stack Overflow

Following advice of @JohnPetrone I added readWrite role to my admin user with grantRolesToUser ... I was running my MongoDbService (that was started without any error) but I ... server's logs and ...

https://stackoverflow.com

mongoDB 3.0 安全权限访问控制| 不如

roles 中的db 参数是必须的,不然会报错:Error: couldn't add user: Missing expected ... "errmsg" : "not authorized on admin to execute command ...

http://ibruce.info

MongoDB 入门之基础DCL - TannerBG - 博客园

2014-10-16T10:40:41.904+0800 Error: couldn't add user: not ... add user: not authorized on admin to execute command createUser: "admin", ...

https://www.cnblogs.com

mongo中给普通数据库gridfs创建root的角色失败:Error couldn't add ...

期间,为了给另外一个普通(而非admin)数据库gridfs,去添加支持currentOp的权限,在还没 ... mongodb – Error: couldn't add user: not authorized on test to execute ...

https://www.crifan.com

When creating first admin user on mongdb cluster getting error "couldn ...

use admin db. ... security: authorization: disabled # keyFile: /opt/mongodb/keyfile ... After this you can add the user and role that you want from the shell. db.

https://stackoverflow.com