2017-11-23 34 views
0

console.sh을 사용하여 OrientDB 3.0.0m2에서 사용자를 만들고 싶습니다.콘솔을 사용하여 OrientDB에서 사용자 만들기

documentation에서 말한 것처럼 SQL 문을 실행할 수 있어야합니다.

여기가 나의 사용 사례입니다.

터미널 1에서 다음을 실행 : 터미널 2에서

docker run -it --name orientdb -p "2424:2424" -e ORIENTDB_ROOT_PASSWORD=rootpass orientdb:3.0.0m2 

는, 다음을 실행합니다

docker run -it --rm --link orientdb:orientdb orientdb:3.0.0m2 /orientdb/bin/console.sh 
OrientDB console v.3.0.0m2 (build 4abea780acc12595bad8cbdcc61ff96980725c3b) https://www.orientdb.com 
Type 'help' to display all the supported commands. 
orientdb> CREATE DATABASE remote:orientdb/db root rootpass PLOCAL 

Creating database [remote:orientdb/db] using the storage type [PLOCAL]...SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 
SLF4J: Defaulting to no-operation (NOP) logger implementation 
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 

Connecting to database [remote:orientdb/db] with user 'root'...OK 
Database created successfully. 

Current database is: remote:orientdb/db 
orientdb {db=db}> CREATE USER myuser IDENTIFIED BY userpass ROLE admin 

Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error parsing query: 

    ^
Encountered " <CREATE> "create "" at line 1, column 1. 
Was expecting one of: 
    <IF> ... 
    <FOREACH> ... 
    ";" ... 
    <IF> ... 

    DB name="db" 
    Error Code="1" 
    DB name="db" 

orientdb {db=db}> 

console.shSQL command CREATE USER을 이해하지 못하는 것 같다. 이것은 버그입니까, 아니면 잘못하고있는 것입니까?

그것은 몇 시간 전에 고정

답변