Recover Couchbase password without knowing it

前端 未结 4 851
自闭症患者
自闭症患者 2021-01-15 10:27

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

4条回答
  •  情深已故
    2021-01-15 11:19

    On mac you can do the follwing steps

    sudo ln -s $CB_HOME/Couchbase\ Server.app/Contents/Resources/couchbase-core/lib/ /lib
    cd "$CB_HOME/Couchbase Server.app/Contents/Resources/couchbase-core/bin"
    ./erl -noinput -eval 'case file:read_file("[PATH TO DATA]/Library/Application Support/Couchbase/var/lib/couchbase/config/config.dat") of {ok, B} -> io:format("~p~n", [binary_to_term(B)]) end.' -run init stop | grep creds
    

    CB_HOME is pointing to your Couchbase installation directory

提交回复
热议问题