The SQL Reference of the OrientDB data set gives a few orders to make, modify, and drop data sets.
The accompanying assertion is a fundamental punctuation of Create Database order.
CREATE DATABASE <database-url> [<user> <password> <storage-type> [<db-type>]]
Following are the insights regarding the alternatives in the above sentence structure.
- <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 data set.
- <password> − Defines the secret phrase for associating with the data set.
- <storage-type> − Defines the capacity types. You can pick among PLOCAL and MEMORY.
Example
You can utilize the accompanying order to make a nearby information base named demo.
Orientdb> CREATE DATABASE PLOCAL:/opt/orientdb/databses/demo
On the off chance that the data set is effectively made, you will get the accompanying yield.
Database created successfully.
Current database is: plocal: /opt/orientdb/databases/demo
orientdb {db = demo}>