I'm working on a project that needed a Graph DB
. I'm developing the project using C# .Net Core
. I had to choose ArangoDB
as a Graph DB
for this project. Unfortunately, there is no official driver for .Net
. That's why I choose a community driver. That is ArangoDB-NET
.
Please check the below information about the database connection:
Connection String Settings:
"DatabaseSettings": {
"ConnectionName": "CloudDBConnection",
"Host": "https://xxxxxxxx.arangodb.cloud",
"Port": 8529,
"UserName": "root",
"Password": "xxxxxxxx",
"DatabaseName": "KKBDTestDB"
}
Database Connection:
private readonly ADatabase db;
public DatabseService(IDatabaseSettings settings)
{
ASettings.AddConnection(settings.ConnectionName, settings.Host, settings.Port, false, settings.DatabaseName, settings.UserName, settings.Password, true);
db = new ADatabase(settings.ConnectionName);
}
CodePudding user response:
1) Remove https from your host name, then try.
Connection string should be:
"DatabaseSettings": {
"ConnectionName": "CloudDBConnection",
"Host": "xxxxxxxx.arangodb.cloud",
"Port": 8529,
"UserName": "root",
"Password": "xxxxxxxx",
"DatabaseName": "KKBDTestDB"
}
2) Download public key for windows from arongodb cloud and follow the following steps:
- Convert Certificate (PEM) to ca-9676da18.crt
- Open a Powershell with Run as Administrator
- certutil -addstore root ca-9676da18.crt