Forgot my admin username and password in MarkLogic

我只是一个虾纸丫 提交于 2019-12-02 07:37:14

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 

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!

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