インストール
$ brew install orientdb
==> /usr/local/Cellar/orientdb/2.2.29/bin/orientdb stop
==> /usr/local/Cellar/orientdb/2.2.29/bin/orientdb start
==> /usr/local/Cellar/orientdb/2.2.29/bin/orientdb stop
==> Caveats
The OrientDB root password was set to 'orientdb'. To reset it:
https://orientdb.com/docs/2.2/Server-Security.html#restoring-the-servers-user-root
To have launchd start orientdb now and restart at login:
brew services start orientdb
Or, if you don't want/need a background service you can just run:
orientdb start
==> Summary
/usr/local/Cellar/orientdb/2.2.29: 237 files, 72.6MB, built in 9 seconds
$ brew install java
構築
$ brew services start orientdb
$ orientdb start
Starting OrientDB server daemon...
以下のURLにアクセスできればインストール&起動完了
http://localhost:2480/studio/index.html#/
テーブル作成
画面から適当に!
コンソールでの接続方法
ローカルで接続する場合
- restore がローカルでの接続しか対応していないため記載
- server が立ち上がっていると接続出来ないのでserver は停止する必要がある
$ orientdb stop
$ orientdb-console
orientdb> connect plocal:/usr/local/var/db/orientdb/Master admin admin
Disconnecting from the database [null]...OK
Connecting to database [plocal:/usr/local/var/db/orientdb/Master] with user 'admin'...OK
リモートでの接続
$ orientdb-console
orientdb> connect remote:localhost/Master admin admin
Connecting to database [remote:localhost/Master] with user 'admin'...OK
orientdb {db=Master}>
ダンプデータの投入
$ orientdb-console
orientdb> connect plocal:/usr/local/var/db/orientdb/Master admin admin
orientdb {db=Master}> restore database ./MdmGraphDb_20180228_03.zip