英文:
Trouble logging into CouchDB after restarting
问题
我在我的计算机上新安装了CouchDB,并且在登录时遇到了问题。作为macOS用户,我进入了ini文件,位于
Library/Preferences/couchdb_local.ini
在那里,我修改了管理员部分,使其如下所示:
[admins]
username = 随机用户名
password = 随机密码
重新启动计算机并再次进入文件后,我可以看到用户名和密码都变成了哈希值,看起来像这样:
[admins]
username = -pbkdf2-dadsiada3f2w34f,jjfioji3jf3,10
password = -pbkdf2-f4i32f0j230jf03,3fijf203jf0,10
然而,我仍然无法使用哈希和非哈希凭据登录到localhost:5984/_utils上的Fauxton门户。我做错了什么吗?谢谢。
英文:
I newly installed CouchDB on my computer and I have been experiencing troubles logging in. As a macOS user, I enter the ini file located at
Library/Preferences/couchdb_local.ini
where I modified the admin section so it looks like
[admins]
username = randomusername
password = randompassword
After restarting my computer and entering the file again, I can see that both the username and password became hashed, looking something like
[admins]
username = -pbkdf2-dadsiada3f2w34f,jjfioji3jf3,10
password = -pbkdf2-f4i32f0j230jf03,3fijf203jf0,10
However, I'm still having troubles logging into the Fauxton portal at localhost:5984/_utils both using the hashed and unhashed credentials.
Is there anything I have done wrong? Thanks.
答案1
得分: 0
[admins]的格式是:<用户名占位符> = <密码占位符>,就像这样:
[admins]
admin = ClarkeAC
hal = killdave
dave = halsucks
英文:
No, the format for [admins]
is: <username placeholder> = <password placeholder>
, so like:
[admins]
admin = ClarkeAC
hal = killdave
dave = halsucks
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论