1
我已經創建了Mongo副本集。 現在我需要連接到Mongo local
db來查看oplog。但我無法爲此創建prope用戶。我已經試過:Jelastic Mongo本地數據庫連接
db.createUser({ user: "opadmin1", pwd: "pass", roles:[{ role: "clusterManager", db: "admin"}]})
db.createUser({ user: "opadmin2", pwd: "pass", roles:[{ role: "clusterManager", db: "local"}]})
db.createUser({ user: "opadmin3", pwd: "evalola", roles:["clusterManager"]})
db.createUser({ user: "opadmin4", pwd: "pass", roles:[{ role: "readWrite", db: "local"}]})
當我嘗試連接像mongodb://[email protected][mongo-env]/local
我與每個時間碼18身份驗證錯誤。