Search code examples
linuxorientdb

Trouble with new install of OrientDB 2.1.9 on Amazon Linux


I am installing OrientDB 2.1.9 on Amazon Linux I am trying to log in to their standard Grateful Dead database. I cannot using the guest, the root works but this is non-optimal.

I used the default guest/guest, right out of the package.

The server credentials in the $ORIENTDB_HOME/config/orientdb-server-config.xml file:


Solution

  • guest user is valid just to connect to server instance and list databases, to connect to the db you have to use db users or root

    orientdb> connect remote:localhost guest guest
    
    Connecting to remote Server instance [remote:localhost] with user 'guest'...OK
    
    
    orientdb {server=remote:localhost/}> connect remote:localhost/GratefulDeadConcerts guest guest
    
    Disconnecting from remote server [remote:localhost/]...
    OK
    Connecting to database [remote:localhost/GratefulDeadConcerts] with user 'guest'...
    Error: com.orientechnologies.orient.core.exception.OSecurityAccessException: User or password not valid for database: 'GratefulDeadConcerts'
    

    if you want to connect to the db with limited permissions you can use built-in users reader or writer or you can create your custom users from inside the database.

    Please refer to this guide too http://orientdb.com/docs/2.1/Security.html