This section discloses how to interface with a specific data set from the OrientDB order line. It opens an information base.
The accompanying assertion is the essential language structure of the Connect order.
CONNECT <database-url> <user> <password>
Following are the insights concerning the alternatives in the above punctuation.
- <database-url> − Defines the URL of the data set. URL contains two sections one is <mode> and the subsequent one is <path>.
- <mode> − Defines the mode, for example nearby mode or distant mode.
- <path> − Defines the way to the information base.
- <user> − Defines the client you need to associate with the information base.
- <password> − Defines the secret phrase for associating with the information base.
Example
We have just made an information base named 'demo' in the past sections. In this model, we will interface with that utilizing the client administrator.
You can utilize the accompanying order to interface with demo data set.
orientdb> CONNECT PLOCAL:/opt/orientdb/databases/demo admin admin
In the event that it is effectively associated, you will get the accompanying yield −
Connecting to database [plocal:/opt/orientdb/databases/demo] with user 'admin'…OK
Orientdb {db = demo}>