2016-09-26 79 views
0

我剛剛下載了Couchbase for OS X(社區版)並啓動了它。那部分進展順利。然後,我開始了在命令行外殼,CBQ,並試圖根據自己的文檔來運行命令:couchbase幫助不起作用

http://developer.couchbase.com/documentation/server/current/tools/cbq-shell.html#topic_bzd_zwr_w5

我可以成功運行的東西,如:

select * from `beer-sample` limit 1; 

...但我不能運行像元命令:

\HELP; 
\ECHO hello; 

那些所有的錯誤響應回來

cbq> \HELP; 
{ 
    "requestID": "a52b8f2f-bef3-4d6f-83a8-f839ad1a87bb", 
    "errors": [ 
     { 
      "code": 3000, 
      "msg": "Input was not a statement." 
     } 
    ], 
    "status": "fatal", 
    "metrics": { 
     "elapsedTime": "401.285µs", 
     "executionTime": "347.522µs", 
     "resultCount": 0, 
     "resultSize": 0, 
     "errorCount": 1 
    } 
} 

cbq> \ECHO hello; 
{ 
    "requestID": "0ec331ca-9f74-409f-b904-6d9543af73da", 
    "errors": [ 
     { 
      "code": 3000, 
      "msg": "syntax error - at hello" 
     } 
    ], 
    "status": "fatal", 
    "metrics": { 
     "elapsedTime": "492.399µs", 
     "executionTime": "431.839µs", 
     "resultCount": 0, 
     "resultSize": 0, 
     "errorCount": 1 
    } 
} 

我在做什麼錯在這裏?

+0

應該工作,社區版的哪個版本您使用的? –

回答

1

這似乎爲我工作...

cbq> \help; 

Help information for all shell commands. 

\ALIAS [ name value ] 

\CONNECT url 

\COPYRIGHT 

\DISCONNECT 

\ECHO args ... 

\HELP [ args ... ] 

\POP [ parameter ] 

\PUSH [ parameter value ] 

\QUIT 
\EXIT 

\REDIRECT OFF | filename 

\SET [ parameter value ] 

\SOURCE filename 

\UNALIAS name ... 

\UNSET parameter 

\VERSION 
相關問題