Console - OPEN

(since v 3.2)

Opens a database.

Syntax

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.

Examples:

  • Connect to a local database as the user admin, loading it directly into the console:

    
    orientdb> connect env plocal:../databases/
    
    orientdb> open demodb admin my_admin_password
    
    Connecting to database [plocal:../databases/demodb]...OK
    
  • Connect to a remote database:

    orientdb> connect env remote:192.168.1.1
    
    orientdb> open demodb admin my_admin_password
    
    Connecting to database [remote:192.168.1.1/demodb]...OK
    

For more information on other commands, see Console Commands.

results matching ""

    No results matching ""