Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset password for root in arangodb?

I'm root and I forgot it What can I do now?

I tried to reinstall arangodb, remove all databases but after new installation old password still exist

like image 385
neuronet Avatar asked Jul 24 '16 19:07

neuronet


2 Answers

service arangodb3 stop
/usr/sbin/arangod --server.authentication false

and then

require("@arangodb/users").replace("root", "my-changed-password");
exit
service arangodb3 restart // **VERY IMPORTANT STEP!!!**
//if you don't restart the server everyone can have access to your database
like image 105
neuronet Avatar answered Sep 28 '22 10:09

neuronet


Start the server arangod with the option --server.authentication false. This will disable authentication, so that you can access the databases without password. If you are asked for credentials in arangosh or the web interface, use root as username and a blank password. You can then change the password of user root (in the web interface: USERS > root > Change Password).

It is advisable to bind the server to --server.endpoint tcp://127.0.0.1:8529 and not 0.0.0.0 with authentication turned off, so that no one from outside can access the unprotected database, but only you locally on the server (you can also bind it to a network address, but make sure that the port is not open to the public in that case).

like image 41
CodeManX Avatar answered Sep 28 '22 11:09

CodeManX