问题
I have just installed Couchbase Server 4.0(beta) and try to run N1QL Query, but could not connect it.
When I try to run cbq-engine.exe -couchbase http://localhost:8091/
The command prompt closed automatically. When try to use cb.exe -engine=http://localhost:8091/
It also does not work. Is it bug?
How to connect it?
(I am running cbq.exe from bin directory of installation)
回答1:
As documented in the Running your first N1QL query section of the Couchbase Server manual the port the cbq
needs to connect to is 8093
cbq.exe -engine=http://localhost:8093
回答2:
There may be something you missed during installation (it happened to me more than once, and this has been signaled to the team): did you check the "Index" and "Query" checkbox, they are unselected by default, and without it N1QL doesn't run...
See the checkboxes under "Start a new Cluster" in the screenshot below:
来源:https://stackoverflow.com/questions/30925652/how-to-connect-to-couchbase-server-4-0beta-n1ql-in-windows