我正在尝试连接到GratefulDeadConcerts而没有任何成功。我正在使用码头工具。
orientdb> connect remote:localhost root root
Disconnecting from the database [null]...OK
Connecting to remote Server instance [remote:localhost] with user 'root'...OK
orientdb {server=remote:localhost/}> list databases
Found 5 databases:
* VehicleHistoryGraph (plocal)
* GratefulDeadConcerts (plocal)
* OpenBeer (plocal)
* BetterDemo (plocal)
* Tolkien-Arda (plocal)
orientdb {server=remote:localhost/}> connect plocal:../databases/GratefulDeadConcerts root root
Disconnecting from remote server [remote:localhost/]...
OK
Connecting to database [plocal:../databases/GratefulDeadConcerts] with user 'root'...
Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '../databases/GratefulDeadConcerts' with mode=rw
DB name="GratefulDeadConcerts"
Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage 'GratefulDeadConcerts' because it does not exist in path: ../databases/GratefulDeadConcerts
DB name="GratefulDeadConcerts"
我做错了什么?
你能试试吗?
connect remote:localhost / GratefulDeadConcerts root root
官方Docker镜像内部没有数据库:不包含感恩的DeadConcerts。这是因为通常会提供存储数据库的卷,并且演示数据库会增加图像的大小。您没有显示用于启动容器的命令,但我想您已经阅读了doc(https://hub.docker.com/_/orientdb/)并且您正在使用类似的东西:
docker run -d --name orientdb -p 2424:2424 -p 2480:2480 \
-v <config_path>:/orientdb/config \
-v <databases_path>:/orientdb/databases \
-v <backup_path>:/orientdb/backup \
-e ORIENTDB_ROOT_PASSWORD=rootpwd \
orientdb
将浏览器指向localhost:2480并从我们的站点下载数据库:http://orientdb.com/docs/last/Studio-Home-page.html
总结: - 阅读有关docker hub中图像的文档 - 阅读有关工作室的文档以及如何导入公共数据库
问候
也许你可以试试这个?
connect remote:localhost/databases/GratefulDeadConcerts root root
决定要连接远程或本地服务器本身,
1.如果是本地使用的地方
orientdb> CONNECT plocal:../ databases / databasename用户名密码
orientdb> CONNECT remote:192.168.1.1/databasename用户名密码