Home > Common Problem > body text

How to create a database with OrientDB

DDD
Release: 2023-06-15 16:28:24
Original
887 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template