在不知道的情况下恢复Couchbase密码 [英] Recover Couchbase password without knowing it

查看:249
本文介绍了在不知道的情况下恢复Couchbase密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 mac ,已下载Mac社区版.启动该应用程序,然后打开管理控制台.到目前为止一切顺利,直到我注销为止.现在,我不必再次登录,因为我从来不需要首先设置密码.

>

它可能是在以前的整个版本上设置的,但是我不确定.

重新安装它不起作用.我一直跳回登录屏幕.

按照其他帖子中的建议执行以下命令并在线帮助导致erlang崩溃

erl -noinput -eval 'case file:read_file("/Users/testuser/Couchbase Server.app/Contents/Resources/couchbase-core/var/lib/couchbase/config/config.dat") of {ok, B} -> io:format("~p~n", [binary_to_term(B)]) end.' -run init stop | grep cred

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

欢迎任何建议

我一直在尝试将新用户放置在benchdb ini文件的admins部分中,但是它们似乎没有占据主导地位(密码不会被散列,读取这些文件时应该被散列)

解决方案

有一个可以运行的cbreset_password脚本,位于CouchBase服务器应用程序的/Contents/Resources/couchbase-core/bin文件夹中

对我来说,它在/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin

只需运行它,您就可以重置Administrator帐户的密码

I'm working on a mac, downloaded the community edition for mac. Launched the app, and opened the admin console. So far so good, untill I logged out. Now I can't log in again since I've never had to set the password in the first place. It might have been set on a previous version a whole while back, but I'm not sure.

Reinstalling it doesn't work. I keep getting bounced back to the login screen.

Executing the following command as suggested in other posts and help online results in a crash of erlang

erl -noinput -eval 'case file:read_file("/Users/testuser/Couchbase Server.app/Contents/Resources/couchbase-core/var/lib/couchbase/config/config.dat") of {ok, B} -> io:format("~p~n", [binary_to_term(B)]) end.' -run init stop | grep cred

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

Any suggestions are welcome

I've been trying to put a new user in the admins section of the couchdb ini files, but they don't seem to take hold (password doesn't get hashed, which it should when these files are read)

解决方案

There is a cbreset_password script you can run, located in the /Contents/Resources/couchbase-core/bin folder of you CouchBase server App

So for me it was in /Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin

Simply run it and you will be able to reset the password for the Administrator account

这篇关于在不知道的情况下恢复Couchbase密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆