mrvautin / adminMongo

adminMongo is a Web based user interface (GUI) to handle all your MongoDB connections/databases needs.
https://adminmongo.markmoffat.com
MIT License
3.88k stars 818 forks source link

Error creating database: MongoError: not authorized on titi to execute command { insert: "test", ordered: true, $db: "titi" } #274

Open davidquintard opened 4 years ago

davidquintard commented 4 years ago

Hello, I get following error: Error creating database: MongoError: not authorized on titi to execute command { insert: "test", ordered: true, $db: "titi" }

app.json:


    "app": {
            "host": "localhost",
            "port": 4321,
            "password": "xxx",
            "locale": "en",
            "context": "pangoria",
            "monitoring": false
    }
}

config.json:

{
  "connections": {
    "default": {
      "connection_string": "mongodb://admin:xxx@localhost",
      "connection_options": {
        "authSource": "admin"
      }
    }
  }
}

David