- OrientDB 教程
- OrientDB - 首页
- OrientDB - 概述
- OrientDB - 安装
- OrientDB - 基本概念
- OrientDB - 数据类型
- OrientDB - 控制台模式
- OrientDB 数据库命令
- OrientDB - 创建数据库
- OrientDB - 修改数据库
- OrientDB - 备份数据库
- OrientDB - 恢复数据库
- OrientDB - 连接数据库
- OrientDB - 断开数据库连接
- OrientDB - 数据库信息
- OrientDB - 列出数据库
- OrientDB - 冻结数据库
- OrientDB - 解冻数据库
- OrientDB - 配置数据库
- OrientDB - 导出数据库
- OrientDB - 导入数据库
- OrientDB - 提交数据库
- OrientDB - 回滚数据库
- OrientDB - 优化数据库
- OrientDB - 删除数据库
- OrientDB 记录命令
- OrientDB - 插入记录
- OrientDB - 显示记录
- OrientDB - 加载记录
- OrientDB - 重新加载记录
- OrientDB - 导出记录
- OrientDB - 更新记录
- OrientDB - 清空记录
- OrientDB - 删除记录
- OrientDB 类命令
- OrientDB - 创建类
- OrientDB - 修改类
- OrientDB - 清空类
- OrientDB - 删除类
- OrientDB 集群命令
- OrientDB - 创建集群
- OrientDB - 修改集群
- OrientDB - 清空集群
- OrientDB - 删除集群
- OrientDB 属性命令
- OrientDB - 创建属性
- OrientDB - 修改属性
- OrientDB - 删除属性
- OrientDB 顶点命令
- OrientDB - 创建顶点
- OrientDB - 移动顶点
- OrientDB - 删除顶点
- OrientDB 边命令
- OrientDB - 创建边
- OrientDB - 更新边
- OrientDB - 删除边
- OrientDB 高级概念
- OrientDB - 函数
- OrientDB - 序列
- OrientDB - 索引
- OrientDB - 事务
- OrientDB - 钩子
- OrientDB - 缓存
- OrientDB - 日志
- OrientDB - 性能调优
- OrientDB - 升级
- OrientDB - 安全性
- OrientDB - Studio
- OrientDB 接口
- OrientDB - Java 接口
- OrientDB - Python 接口
- OrientDB 有用资源
- OrientDB - 快速指南
- OrientDB - 有用资源
- OrientDB - 讨论
OrientDB - 控制台模式
OrientDB 控制台是一个基于Java的应用程序,用于操作 OrientDB 数据库和服务器实例。OrientDB 支持多种控制台模式。
交互模式
这是默认模式。只需执行以下脚本即可启动控制台:bin/console.sh(或MS Windows系统中的bin/console.bat)。确保已授予其执行权限。
OrientDB console v.1.6.6 www.orientechnologies.com Type 'help' to display all the commands supported. orientdb>
完成后,控制台即可接受命令。
批处理模式
要在批处理模式下执行命令,请运行以下bin/console.sh(或MS Windows系统中的bin/console.bat)脚本,并使用分号“;”分隔所有命令。
orientdb> console.bat "connect remote:localhost/demo;select * from profile"
或者调用控制台脚本,传入包含要执行的命令列表的文本文件名。命令必须使用分号“;”分隔。
示例
Command.txt 包含您希望通过 OrientDB 控制台执行的命令列表。以下命令从 command.txt 文件接受批处理命令。
orientdb> console.bat commands.txt
在批处理模式下,您可以忽略错误以使脚本继续执行,方法是将“ignoreErrors”变量设置为 true。
orientdb> set ignoreErrors true
启用回显
当您在管道中运行控制台命令时,您需要显示它们。通过在开头将其设置为属性来启用命令的“回显”。以下是 OrientDB 控制台中启用回显属性的语法。
orientdb> set echo true
广告