如何在arangodb中重置root密码?

时间:2022-11-15 12:13:19

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

我尝试重新安装arangodb,删除所有的数据库,但是在新的安装之后旧密码仍然存在

3 个解决方案

#1


9  

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

#2


6  

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).

使用“服务器”选项启动服务器arangod。身份验证错误。这将禁用身份验证,以便您可以不使用密码访问数据库。如果您在arangod或web界面中被要求提供凭据,请使用root作为用户名和空白密码。然后,您可以更改用户根的密码(在web界面中:用户>根>更改密码)。

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).

建议将服务器绑定到—server。端点tcp:/ / 127.0.0.1:8529而不是0.0.0.0验证关闭,这样从外面没有人可以访问不受保护的数据库,但只有你在本地服务器上(你也可以将它绑定到一个网络地址,但确保端口是不向公众开放在这种情况下)。

#3


0  

I'm running ArangoDB3 as a service on Ubuntu, and I wasn't able to figure out how to pass the --server.authentication false or --server.endpoint tcp://127.0.0.1:8529 parameters to the arangod process.

我在Ubuntu上运行ArangoDB3作为一个服务,但是我不知道如何传递——服务器。身份验证错误或服务器。端点tcp:/ 127.0.0.1:8529 arangod进程参数。

I made it work by changing the same values in /etc/arangodb3/arangod.conf.

我通过在/etc/arangodb3/arangod.conf中修改相同的值来实现。

#1


9  

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

#2


6  

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).

使用“服务器”选项启动服务器arangod。身份验证错误。这将禁用身份验证,以便您可以不使用密码访问数据库。如果您在arangod或web界面中被要求提供凭据,请使用root作为用户名和空白密码。然后,您可以更改用户根的密码(在web界面中:用户>根>更改密码)。

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).

建议将服务器绑定到—server。端点tcp:/ / 127.0.0.1:8529而不是0.0.0.0验证关闭,这样从外面没有人可以访问不受保护的数据库,但只有你在本地服务器上(你也可以将它绑定到一个网络地址,但确保端口是不向公众开放在这种情况下)。

#3


0  

I'm running ArangoDB3 as a service on Ubuntu, and I wasn't able to figure out how to pass the --server.authentication false or --server.endpoint tcp://127.0.0.1:8529 parameters to the arangod process.

我在Ubuntu上运行ArangoDB3作为一个服务,但是我不知道如何传递——服务器。身份验证错误或服务器。端点tcp:/ 127.0.0.1:8529 arangod进程参数。

I made it work by changing the same values in /etc/arangodb3/arangod.conf.

我通过在/etc/arangodb3/arangod.conf中修改相同的值来实现。