Step (1.) Console - conn
the Console starts in interactive mode. In this mode, the Console loads to an orientdb>prompt. From there you can execute commands and SQL statements as you might expect in any other database console.
cd /opt/orientdb/bin/
./console.sh
Creates a user in the current database, using the specified password and an optional role. When the role is unspecified, it defaults to writer
CONNECT REMOTE:localhost/<database_name> <user> <password>
Step (3.) Create User
Creates a user in the current database, using the specified password and an optional role. When the role is unspecified, it defaults to writer
orientdb> CREATE USER <user> IDENTIFIED BY <password> ROLE <admin>
the Console starts in interactive mode. In this mode, the Console loads to an orientdb>prompt. From there you can execute commands and SQL statements as you might expect in any other database console.
cd /opt/orientdb/bin/
./console.sh
OrientDB console v.X.X.X (build 0) www.orientdb.com Type 'HELP' to display all the commands supported. Installing extensions for GREMLIN language v.X.X.X orientdb>Step (2.) Connect to a remote database:
Creates a user in the current database, using the specified password and an optional role. When the role is unspecified, it defaults to writer
CONNECT REMOTE:localhost/<database_name> <user> <password>
orientdb> CONNECT REMOTE:192.168.1.1/GratefulDeadConcerts admin my_admin_password
Connecting to database [remote:192.168.1.1/GratefulDeadConcerts]...OK
Step (3.) Create User
Creates a user in the current database, using the specified password and an optional role. When the role is unspecified, it defaults to writer
orientdb> CREATE USER <user> IDENTIFIED BY <password> ROLE <admin>
orientdb> CREATE USER manish IDENTIFIED BY password ROLE admin
- <user> Defines the logical name of the user you want to create.
- <password> Defines the password to use for this user.
- ROLE Defines the role you want to set for the user. For multiple roles, use the following syntax: ['author', 'writer'].
Comments
Post a Comment