我正在 Amazon Linux 上安装 OrientDB 2.1.9 我正在尝试登录到他们的标准 Grateful Dead 数据库。我不能使用 guest ,root 有效,但这不是最佳的。
我使用了默认的 guest / guest ,就在包中。
$ORIENTDB_HOME/config/orientdb-server-config.xml 文件中的服务器凭证:
最佳答案
guest 用户仅在连接到服务器实例和列出数据库时有效,要连接到数据库,您必须使用数据库用户或 root
orientdb> connect remote:localhost guest guest
Connecting to remote Server instance [remote:localhost] with user 'guest'...OK
orientdb {server=remote:localhost/}> connect remote:localhost/GratefulDeadConcerts guest guest
Disconnecting from remote server [remote:localhost/]...
OK
Connecting to database [remote:localhost/GratefulDeadConcerts] with user 'guest'...
Error: com.orientechnologies.orient.core.exception.OSecurityAccessException: User or password not valid for database: 'GratefulDeadConcerts'
如果您想以有限的权限连接到数据库,您可以使用内置用户reader 或writer,或者您可以从数据库内部创建自定义用户。
关于linux - 在 Amazon Linux 上新安装 OrientDB 2.1.9 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35925496/