ArangoDB storing path

37 views
Skip to first unread message

Andy

unread,
Jul 30, 2020, 10:38:58 AM7/30/20
to ArangoDB
Where ArangoDB store databases? How can I change it?

Jan

unread,
Jul 30, 2020, 10:42:57 AM7/30/20
to ArangoDB
Hi,

the database directory is configured by a startup option `--database.directory`, which can be set on the command-line when starting ArangoDB manually, or it can be configured via .conf file when starting it as a service.

The default database directory should be /var/lib/arangodb3 on Linux.
The documentation is here:

Best regards
J

Jan

unread,
Jul 30, 2020, 10:44:53 AM7/30/20
to ArangoDB
Plus: configuration files on Linux should be located in /etc/arangodb3.
If you run a single server, check the file arangod.conf and search for the [database] section in it.

Andy

unread,
Jul 30, 2020, 11:49:11 AM7/30/20
to ArangoDB
I stopped service, edit two conf files from /etc/arangodb3 folder and start service.
But this not works - not connected, even I copied folder from /var/lib to my location. Restoring conf files not helps,
only helps purging and installing again ArangoDB

Andy

unread,
Jul 30, 2020, 11:53:38 AM7/30/20
to ArangoDB
Maybe this?
"When specifying the database directory, please make sure the directory is actually writable by the arangod process."
I must test if it will be good, if I chown my foldwer to arangodb:arangodb

Andy

unread,
Jul 30, 2020, 12:24:08 PM7/30/20
to ArangoDB
Is OK if I call arangod (with parameters) instead of service, note: initial password is empty.

Jan

unread,
Jul 31, 2020, 4:51:28 AM7/31/20
to ArangoDB
It should work either way: starting it as a service or invoking it manually from the command line.
The initial password will be empty if you run arangod on a new database directory.
You can also invoke arango-secure-installation to set an initial password.
Reply all
Reply to author
Forward
0 new messages