Couchbase CBQ 静默失败
Couchbase CBQ Silent Fail
我正在尝试通过 couchbase CBQon windows 查询安全存储桶。
我的 PATH 中有 couchbase/bin,从命令行我可以 运行 这个:
cbq -engine=http://localhost:8091 -c=hug_contenthub:password
似乎连接正常:
Connected to : http://localhost:8091/. Type Ctrl-D or \QUIT to exit.
Path to history file for the shell : C:\Users\kevin\.cbq_history
cbq>_
从现在开始,除了退出,我什么也做不了。我尝试了几个命令:
cbq> select 1=1
> SELECT DISTINCT type FROM `beer-sample`
> create primary index on `beer-sample`
他们都被忽略了。根本没有反馈。唯一改变的是 cqb> 变为“....>”,cqb 位被剥离。
我在这里错过了什么?
我对 Couchbase Server 比较陌生,而且我习惯了旧的 MS SQL 方式,所以我想我遇到了类似的问题。
我的解决方案:我在每个查询的末尾添加了一个'semicolon'。
在编写和调整 N1QL 查询时,我也倾向于使用新的 Query Workbench tool instead of cbq。 (但也许这只是我)。
我正在尝试通过 couchbase CBQon windows 查询安全存储桶。
我的 PATH 中有 couchbase/bin,从命令行我可以 运行 这个:
cbq -engine=http://localhost:8091 -c=hug_contenthub:password
似乎连接正常:
Connected to : http://localhost:8091/. Type Ctrl-D or \QUIT to exit.
Path to history file for the shell : C:\Users\kevin\.cbq_history
cbq>_
从现在开始,除了退出,我什么也做不了。我尝试了几个命令:
cbq> select 1=1
> SELECT DISTINCT type FROM `beer-sample`
> create primary index on `beer-sample`
他们都被忽略了。根本没有反馈。唯一改变的是 cqb> 变为“....>”,cqb 位被剥离。
我在这里错过了什么?
我对 Couchbase Server 比较陌生,而且我习惯了旧的 MS SQL 方式,所以我想我遇到了类似的问题。
我的解决方案:我在每个查询的末尾添加了一个'semicolon'。
在编写和调整 N1QL 查询时,我也倾向于使用新的 Query Workbench tool instead of cbq。 (但也许这只是我)。