I guess you/the-sails-module are trying connecting to the server, not the
database. In this case you'd need "root" as user and the password stored in
config/orientdb-server-config.xml file (auto generated).

How did you connect to OrientDB?

Best Regards,

Founder & CEO
OrientDB <http://orientdb.com/>


On 12 July 2015 at 22:26, Christopher Armstrong <[email protected]> wrote:

> Hi there,
>
>
> I've just started off with OrientDb. I've added a new user called "testdb"
> with password "testdb" and assigned the "admin" role to the user over the
> web interface. I can connect with this user over the OrientDB web interface
> but I can't connect with my Javascript code.
>
>
> It works when I try logging in with the root user that is defined in the 
> orientdb-server-config.xml.
> How can I grant access to my "testdb" user so that I can connect to
> OrientDb remotely without having to add the users to
> orientdb-server-config.xml? It's totally unpractical if I need to add all
> the database users to this file manually.
>
>
> Thanks for your assistance.
>
>
> Here the error:
>
> error: A hook (`orm`) failed to load!
>
> error: OrientDB.RequestError: Wrong user/password to [connect] to the
> remote OrientDB Server instance. Get the user/password from the
> config/orientdb-server-config.xml file
>
>     at Operation.parseError
> (/Users/charms/Documents/Temp/testbackend/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/protocol28/operation.js:832:13)
>
>     at Operation.consume
> (/Users/charms/Documents/Temp/testbackend/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/protocol28/operation.js:422:35)
>
>     at Connection.process
> (/Users/charms/Documents/Temp/testbackend/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/connection.js:360:17)
>
>     at Connection.handleSocketData
> (/Users/charms/Documents/Temp/testbackend/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/connection.js:279:17)
>
>     at Socket.emit (events.js:95:17)
>
>     at Socket.<anonymous> (_stream_readable.js:764:14)
>
>     at Socket.emit (events.js:92:17)
>
>     at emitReadable_ (_stream_readable.js:426:10)
>
>     at emitReadable (_stream_readable.js:422:5)
>
>     at readableAddChunk (_stream_readable.js:165:9)
>
>     at Socket.Readable.push (_stream_readable.js:127:10)
>
>     at TCP.onread (net.js:528:21)
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to