Home  >  Article  >  How to create a database with OrientDB

How to create a database with OrientDB

DDD
DDDOriginal
2023-06-15 16:28:24871browse

How to create a database with OrientDB

The SQL reference for the OrientDB database provides several commands to create, alter, and delete the database.

The following statements are the basic syntax for creating a database command.

CREATE DATABASE <database-url> [<user> <password> <storage-type> [<db-type>]]SQL

Here are the details about the options in the above syntax.

- Defines the URL of the database. The URL contains two parts, the first part is , and the second part is .

- Defines the mode, either local mode or remote mode.

- Defines the path to the database.

- Defines the user to connect to the database.

- Defines the password to connect to the database.

- Defines the storage type. You can choose PLOCAL and MEMORY.

Example

You can use the following command to create a local database named demo.

Orientdb> CREATE DATABASE PLOCAL:/opt/orientdb/databses/demoShell

If the database is successfully created, you will see output similar to the following

How to create a database with OrientDB

The above is the detailed content of How to create a database with OrientDB. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn