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
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
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With