Forgot my admin username and password in MarkLogic

白昼怎懂夜的黑 提交于 2019-12-02 20:16:06

问题


I have forgotten my username and password of admin in MarkLogic 5. I tried to uninstall the software MarkLogic 5 and install that again. But every time it is asking for username and password when logging into the port 8001 after starting the server.

Can you please help me in getting that?


回答1:


Getting past the admin password is supposed to be hard (or impossible), of course. You mentioned uninstalling MarkLogic; if you aren't worried about preserving data, you can uninstall MarkLogic and remove the data directory (/var/opt/MarkLogic on Linux), then when you reinstall you'll be prompted to enter a new admin password.


edit: adding code from Jordan Stewart's comment to provide better formatting:

# stop Marklogic using a service 
sudo service MarkLogic stop 
# change directories to MarkLogic data dir 
cd var/opt/MarkLogic/ 
# remove everything including folder, this is dangerous 
sudo rm -rf * 
# start MarkLogic
sudo service MarkLogic start 



回答2:


The default data directory is under C:\Program Files\MarkLogic. Remove c:\Program Files\MarkLogic\Data directory and start ML, then run MarkLogic Admin url, which will open the url to http://127.0.0.1:8001/ It will ask initial setup. Type your new admin password there, then you will be cool bananas!



来源:https://stackoverflow.com/questions/27803678/forgot-my-admin-username-and-password-in-marklogic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!