WebYou can also grant multiple roles to the user using the db.grantRolesToUser() method. For example, to grant both read and write roles to the user, you can use the following command: Web29 jun. 2024 · Details: Command failed with error 13: ‘not authorized on graylog to execute command { createIndexes: “pipeline_processor_pipelines”, indexes: [ { key: { title: 1 }, name: “title_1”, ns: “graylog.pipeline_processor_pipelines”, unique: true } ] }’ on server hostname:27001.
java - MongoDB - Command failed with error code 13 `not …
Web7 apr. 2024 · Hi, i created one docker-compose file to build my application and also to connect mongodb container. but am getting unauthorized exception when am hitting any … WebWhen I use the mongo shell to connect to the database (using -u and -p on command line) and run a query like this: db.mycollectionname.find () I get this error: error: { "$err" : "not authorized for query on mydbname.request", "code" : 13 } … poetry writing classes near me
authentication failed failed with error 13: "not authorized
Web2 mrt. 2011 · Open MongoDB shell mongo Execute this command on the shell use admin db.createUser ( { user: 'admin', pwd: 'YouPassforUser', roles: [ { role: 'root', db: 'admin' } ] … Web17 jun. 2024 · com.mongodb.MongoCommandException: Command failed with error 13: 'not authorized on mongoMuckplatform to execute command { insert: "user", ordered: true, documents: [ { _id: "22222", loginName: "mongo", passWord: "123456", userName: "MongoDB", age: 10, sex: 175, _class: "com.dzl.muckcommon.entity.User" } ] }' on … WebI got the same error and solved it by setting the authSource=admin. sample url string. mongodb://root:example@localhost:27017/learningdb?authSource=admin&retryWrites=true&w=majority The user already has full authority and Spring boot was able to connect to mongoDB … poetry writers competition