search: keywords: ['console', 'command', 'connection', 'CONNECT']
(since v 3.2)
Opens a database.
OPEN <database-name> <user> <password>
<database-name>Defines the name of the database you want to connect to. The console has to be connected to a server/environment (see CONNECT ENV ) and the database has to be present in that environment
<user>Defines the user you want to connect to the database with.
<password>Defines the password needed to connect to the database, with the defined user.
Connect to a local database as the user
admin, loading it directly into the console:
connect env plocal:../databases/orientdb>
open demodb admin my_admin_passwordConnecting to database [plocal:../databases/demodb]...OK
Connect to a remote database:
connect env remote:192.168.1.1orientdb>
open demodb admin my_admin_passwordConnecting to database [remote:192.168.1.1/demodb]...OK
For more information on other commands, see Console Commands.