【问题标题】:Error While creating a bucket through cbq shell in Couchbase在 Couchbase 中通过 cbq shell 创建存储桶时出错
【发布时间】:2016-06-28 08:24:46
【问题描述】:

当我执行以下命令在 couchbase 服务器中创建存储桶时。

cbq.exe> bucket-create -c 127.0.0.1:8091 -u Administrator -p password --bucket=test_bucket --bucket-type=couchbase --bucket-port=11222 --bucket-ramsize=200 --bucket-replica=1 --wait;

错误输出:

{
    "requestID": "d88894ad-085d-44c7-b600-3917bc254035",
    "errors": [
        {
            "code": 3000,
            **"msg": "syntax error - at bucket"**
        }
    ],
    "status": "fatal",
    "metrics": {
        "elapsedTime": "1.0001ms",
        "executionTime": "1.0001ms",
        "resultCount": 0,
        "resultSize": 0,
        "errorCount": 1
    }
}

有人能告诉我我的命令有什么问题吗?

【问题讨论】:

    标签: couchbase couchbase-java-api


    【解决方案1】:

    我看到您正在使用用于运行 N1QL 查询的 cbq。

    也许你的意思是 couchbase-cli。

    $ /opt/couchbase/bin/couchbase-cli bucket-create -c 127.0.0.1:8091 
    -u Administrator -p password --bucket=test_bucket --bucket-type=couchbase
    --bucket-port=11222 --bucket-ramsize=100 --bucket-replica=1 --wait
    ...SUCCESS: bucket-create
    

    【讨论】:

      猜你喜欢
      • 2017-07-05
      • 1970-01-01
      • 1970-01-01
      • 2021-04-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多