Orientdb 简明教程
OrientDB - Info Database
本章介绍如何从 OrientDB 命令行获取特定数据库的信息。
This chapter explains how to get information of a particular database from the OrientDB command line.
以下语句是 Info 命令的基本语法。
The following statement is the basic syntax of the Info command.
info
Note - 仅在连接到特定数据库后才能使用此命令,它将仅检索当前正在运行的数据库的信息。
Note − You can use this command only after connecting to a particular database and it will retrieve the information of only the currently running database.
Example
在此示例中,我们将使用我们在上一章创建的同名数据库“demo”。我们将从 demo 数据库检索基本信息。
In this example, we will use the same database named ‘demo’ that we created in the previous chapter. We will retrieve the basic information from demo database.
可以使用以下命令断开数据库连接。
You can use the following command to disconnect the database.
orientdb {db = demo}> info
如果断开连接成功,您将看到以下输出。
If it is successfully disconnected, you will get the following output.
Current database: demo (url = plocal:/opt/orientdb/databases/demo)
DATABASE PROPERTIES
--------------------------------+---------------------------------------------+
NAME | VALUE |
--------------------------------+---------------------------------------------+
Name | null |
Version | 14 |
Conflict Strategy | version |
Date format | yyyy-MM-dd |
Datetime format | yyyy-MM-dd HH:mm:ss |
Timezone | Asia/Kolkata |
Locale Country | IN |
Locale Language | en |
Charset | UTF-8 |
Schema RID | #0:1 |
Index Manager RID | #0:2 |
Dictionary RID | null |
--------------------------------+---------------------------------------------+
DATABASE CUSTOM PROPERTIES:
+-------------------------------+--------------------------------------------+
| NAME | VALUE |
+-------------------------------+--------------------------------------------+
| strictSql | true |
+-------------------------------+--------------------------------------------+
CLUSTERS (collections)
---------------------------------+-------+-------------------+----------------+
NAME | ID | CONFLICT STRATEGY | RECORDS |
---------------------------------+-------+-------------------+----------------+