Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-1008

we should extend "Running cbq" section

    XMLWordPrintable

Details

    Description

      Running cbq
      cbq is an interactive shell for executing N1QL queries. It is shipped with Couchbase Server.

      It is not in the system-wide path by default. To run it, invoke the full path to cbq. Copy/paste the following into your terminal:

      Linux
      "/opt/couchbase/bin/cbq"

      Mac OS X
      "/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbq"

      Microsoft Windows
      "C:\Program Files\Couchbase\Server\bin\cbq.exe"

      Warning: By default, cbq tries to connect to the query service running locally on the current node. If no query service is running on the current node, a connection refused error will be returned whenever you attempt to execute a query. If you are running cbq remotely from a node, you can specify the --engine parameter and point the coq shell to connect to a node that has the query service.

      For example:
      cbq "--engine=http://URL_to_node_with_query_service:8093"

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            amarantha.kulkarni Amarantha Kulkarni (Inactive)
            docsite-collector Docs Site Collector
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty