gpt4 book ai didi

Mongodb db.dropUser() ReferenceError : is not defined

转载 作者:可可西里 更新时间:2023-11-01 10:00:44 27 4
gpt4 key购买 nike

> use mydb
switched to db mydb
> show users
{
"_id" : "mydb.mydbReadWrite",
"user" : "mydbReadWrite",
"db" : "mydb",
"roles" : [
{
"role" : "readWrite",
"db" : "mydb"
}
]
}

> db.dropUser(mydbReadWrite)
2015-03-29T03:55:52.276+0200 E QUERY ReferenceError: mydbReadWrite is not defined
at (shell):1:13

我不明白?我使用 root 用户登录。

最佳答案

db.dropUser(mydbReadWrite)

改为使用:

db.dropUser("mydbReadWrite")

关于Mongodb db.dropUser() ReferenceError : is not defined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29324806/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com