Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to reset orient-db password

I have recently started learning orient-db but some how forgot the root password I set in the very beginning of installation. Can someone please tell how to reset it. I have googled a lot and looked through the documentation as well but nothing worked.

like image 887
Nayan Srivastava Avatar asked Sep 17 '25 23:09

Nayan Srivastava


1 Answers

Server users are stored in the config/orientdb-server-config.xml configuration file, in the element.

  <users>
        <user resources="*" password="{PBKDF2WithHmacSHA256} YOUR PASSWORD" name="root"/>
        <user resources="connect,server.listDatabases,server.dblist" password="{PBKDF2WithHmacSHA256} YOUR PASSWORD" name="guest"/>
    </users>

If you want to reset the password you have to delete the two lines that i posted above and set to false this parameter:

<isAfterFirstTime>false</isAfterFirstTime>

Hope it helps.

Regards

like image 98
Michela Bonizzi Avatar answered Sep 20 '25 16:09

Michela Bonizzi