官网下载orientdb-3.1.10.zip,解压E:\Programs\orientdb-3.1.10\bin,启动服务器server.bat

其他安装方式参考https://orientdb.com/docs/last/admin/installation/

服务端:

orientdb-server-config.xml 配置端口,默认如下两个端口

  • Binary: OrientDB listens on port 2424 for binary connections from the console and for clients and drivers that support the Network Binary Protocol.

  • HTTP: OrientDB listens on port 2480 for HTTP connections from OrientDB Studio Web Tool and clients and drivers that support the HTTP/REST protocol, or similar tools, such as cURL.

第一次提示输入root账号密码输入后保存到orientdb-server-config.xml的user节点。后续创建数据库、列数据库都需要用root账号和此密码。如果账号密码输入错误connet并没有报错,都是提示OK,

后面进行查询数据库时候就会报错权限不足。

使用console.bat控制台命令来连接数据库

Type 'help' to display all the supported commands.
orientdb> CONNECT remote:localhost root su*****12
OK
orientdb {server=remote:localhost}> list databasesFound 1 databases:* demodb
orientdb {server=remote:localhost/test}> CREATE DATABASE remote:localhost/test admin adminCreating database [remote:localhost/test] using the storage type [PLOCAL]...
Error: com.orientechnologies.orient.core.exception.OSecurityAccessException: Wrong user/password to [connect] to the remote OrientDB Server instanceorientdb {server=remote:localhost/test}> CREATE DATABASE remote:localhost/test root suo****12Creating database [remote:localhost/test] using the storage type [PLOCAL]...
Database created successfully.Current database is: remote:localhost/test
orientdb {db=test}>

也可以通过图形化进行访问,这里默认数据库demodb的用户和密码是admin、admin。可以登录后security的tab页进行admin账号密码修改。

创建数据库的账户密码也不能随便输,而是用root账号来创建。test数据库创建后也是有默认如下用户(密码和用户名相同),用如下用户就可以登录test数据库。

直接连接某个数据库

orientdb {db=test}> CONNECT remote:localhost/demodb admin adminDisconnecting from the database [test]...OK
IMPORTANT! Using default password is unsafe, please change password for user 'admin' on database 'demodb'
Connecting to database [remote:localhost/demodb] with user 'admin'...OK
orientdb {db=demodb}>

如果在服务器可以使用本地方式连接,效率更高

orientdb> connect plocal:E:/Programs/orientdb-3.1.10/databases/test admin admin
IMPORTANT! Using default password is unsafe, please change password for user 'admin' on database 'test'
Connecting to database [plocal:E:/Programs/orientdb-3.1.10/databases/test] with user 'admin'...
2021-04-13 16:54:12:121 WARNI IMPORTANT! Using default password is unsafe, please change password for user 'admin' on database 'test' [OrientDBEmbedded]
2021-04-13 16:54:12:567 WARNI Storage 'test' was not closed properly. Will try to recover from write ahead log [OLocalPaginatedStorage]
2021-04-13 16:54:17:757 WARNI Record com.orientechnologies.orient.core.storage.impl.local.paginated.wal.common.EmptyWALRecord{lsn_operation_id=OperationIdLSN{operationId=471, lsn=OLogSequenceNumber{segment=7, position=22}}} will be skipped during data restore [OLocalPaginatedStorage]OK
orientdb {db=test}>

OrientDB基本使用相关推荐

  1. python里orient_从Python访问OrientDB

    我想将一个> 1mn记录的 MySQL数据库转换成一个图形数据库,因为它是一个链接很多的网络类型数据. Neo4J的免费版本有一些我认为可能会遇到的限制,因此我安装了OrientDB(Commu ...

  2. PostgreSQL,MongoDB,Neo4j,OrientDB和ArangoDB比较

    基准:PostgreSQL,MongoDB,Neo4j,OrientDB和ArangoDB 2015年10月13日表现 在这篇博客文章 - 这是一个综合的表现博客系列 - 我想完成我们的NoSQL性能 ...

  3. OrientDB系列:(一)初步使用及相关概念

    1 初步使用 1.1 安装 目前OrientDB的最新版本为3.x,可通过官网下载. python通过pyorient包与OrientDB连接时,需要OrientDB版本为2.x,下载地址.其中,2. ...

  4. OrientDB入门

    OrientDB入门 OrientDB是什么? 用一句话概括:一种Nosql数据库,支持文档.Key/Value,文档,图多种模型. 基础概念 记录 是读取和存储的最小单元.有四种类型: * 文档(D ...

  5. OrientDB 图状数据库示例

    OrientDB 图计算框架 OrientDB Doc传送门 图计算框架学习示例 概念 图(Graph)G=(V,E) V是非空集合的顶点集,E是V中顶点构成的无序二元组的边集合. G的边集合数范围: ...

  6. orientdb实战

    http://blog.csdn.net/zhufengyi/article/details/53037764    orientdb实战

  7. 常用的图数据库(Neo4j、FlockDB、AllegroGrap、GraphDB、InfiniteGraph、TITAN、OrientDb)

    1. Neo4j Neo4j是一个流行的图形数据库,它是开源的.最近,Neo4j的社区版已经由遵循AGPL许可协议转向了遵循GPL许可协议.尽管如此,Neo4j的企业版依然使用AGPL许可.Neo4j ...

  8. OrientDB部署

    1. 环境准备 操作系统: Centos6.8 内存: 8G(分布式部署时建议4G及以上,否则需要手动修改JVM配置) JDK: 建议jdk8版本(3.0版本要求jdk8) 环境变量:需配置JAVA_ ...

  9. orientdb 学习

    简介 OrientDB 是一款 NoSQL 数据库.是一种文档-图数据库.即:既具有文档数据库的特性,又具有图数据库的功能. 端口 2424  OrientDB 监听 二进制 访问的的端口 (即:通过 ...

  10. 2.OrientDB连接操作

    查考教程:https://www.w3cschool.cn/orientdb/ 1.连接到orientDB 进入orientDB安装目录,执行console.sh sh console.sh 输入连接 ...

最新文章

  1. 实验6      VRRP网关备份(下)
  2. xml布局显示需要预判断,可是还没有show出来,怎么办?
  3. Object-C 打开工程,选择模拟起时,提示no scheme
  4. McAfee.VirusScan.CommandLine.V.6.0.3
  5. 《剑指offer》--二维数组中的查找、从头到尾打印链表、重建二叉树、旋转数组的最小数字
  6. jAVA not find main_java编程时出现Could not find the main class 怎么解决???
  7. nginx负载均衡配置-windows
  8. 为Unity项目生成文档(一)
  9. 20个经典Android游戏源码下载地址(持续更新~)
  10. MathType7数学公式编辑使用计算详细教程
  11. 如何去追女生,看了你就成功了一半
  12. Java12之switch升级语法在Eclipse中的穿透问题
  13. java多次合并单元格的快捷键_Excel实战技巧,快速合并单元格的3种方法,最后一种效率最高!...
  14. Akka-CQRS(9)- gRPC,实现前端设备与平台系统的高效集成
  15. 在ArcGIS中自定义符号制作时,发现无法正常使用符号单位,是怎么回事?
  16. Java项目:JSP会议-会议室管理系统
  17. win10 系统识别不了移动硬盘
  18. 春秋战国时期灭了三个国家的陈国女人
  19. java运行库未能修复,如何修复Microsoft Visual Studio错误:“程序包未正确加载”?...
  20. 家用计算机的ram怎么清理,计算机内存怎么清理

热门文章

  1. 全局平衡二叉树 P4751 【模板】“动态DP“
  2. 此三层非彼三层——MVCUBD
  3. 利用python对亚马逊智能产品评论进行分析
  4. [附源码]Python计算机毕业设计Django房屋租赁系统
  5. Vue中extend基本用法
  6. java编程运动会_java田径运动会管理系统
  7. BIOS ACPI基础(总览)
  8. 人工智能、神经网络、深度学习、机器学习傻傻分不清?来看看AI奠基人的解答!
  9. 一篇出海必读的——跨境支付产品介绍白皮书
  10. 路由器漏洞挖掘(栈,危险函数,方法)