Skip to content

Instantly share code, notes, and snippets.

@jperocho
Last active June 18, 2018 13:07
Show Gist options
  • Save jperocho/4e27eecab0e175bb7ac5111705e15648 to your computer and use it in GitHub Desktop.
Save jperocho/4e27eecab0e175bb7ac5111705e15648 to your computer and use it in GitHub Desktop.
Arango Commands

Arango Cheat Sheet

Installing in Centos 7

cd /etc/yum.repos.d/
curl -OL https://www.arangodb.com/9c169fe900ff79790395784287bfa82f0dc0059375a34a2881b9b745c8efd42e/arangodb33/CentOS_7/arangodb.repo
yum -y install arangodb3e-3.3.10

Run arango-secure-installation then Enter the new root password

Please enter password for root user:
Repeat password:

After the secure installation restart arangodb

# systemctl start arangodb3

Creating Database and User

arangosh> db._createDatabase("example");
arangosh> var users = require("@arangodb/users");
arangosh> users.save("root@example", "password");
arangosh> users.grantDatabase("root@example", "example");

You can now connect to the new database using the user root@example.

shell> arangosh --server.username "root@example" --server.database example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment