How to connect to Couchbase server 4.0(Beta) N1QL in windows?

雨燕双飞 提交于 2019-12-11 08:49:13

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!