Orientdb 简明教程
OrientDB - Disconnect Database
本章介绍如何从 OrientDB 命令行断开与特定数据库的连接。它会关闭当前打开的数据库。
This chapter explains how to disconnect to a particular database from the OrientDB command line. It closes the currently open database.
以下语句是 Disconnect 命令的基本语法。
The following statement is the basic syntax of the Disconnect command.
DISCONNECT
Note − 你只能在连接到特定数据库后才能使用此命令,并且它只会关闭当前正在运行的数据库。
Note − You can use this command only after connecting to a particular database and it will only close 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 disconnect from demo database.
可以使用以下命令断开数据库连接。
You can use the following command to disconnect the database.
orientdb {db = demo}> DISCONNECT
如果断开连接成功,你将收到以下输出 −
If it is successfully disconnected, you will get the following output −
Disconnecting to database [plocal:/opt/orientdb/databases/demo] with user 'admin'…OK
orientdb>