密码为空时,ArangoDB .NET 驱动程序的连接字符串是哪个?

Which is the connection string for ArangoDB .NET driver when password is empty?

这两个

Arango.Client.ASettings.AddConnection("conn", "127.0.0.1", 8529, false, "user_name", "");

还有这个

Arango.Client.ASettings.AddConnection("conn", "127.0.0.1", 8529, false, "user_name", null);

会报错

"The remote server returned an error: (401) Unauthorized."

任何进一步的访问。

查看 documentation 您会发现只有在身份验证关闭时才可以使用空密码。

Authentication is turned on by default in ArangoDB. You should make sure that it was not turned off manually however. Check the configuration file (normally named /etc/arangodb.conf) and make sure it contains the following line in the server section:

authentication = true

据我所知,您有两个选择,关闭身份验证或提供密码。