Running your first N1QL query

I’m trying to run my first N1QL on CB 4.0 CE on Windows server 2008R2.

I run cbq using "C:\Program Files\Couchbase\Server\bin\cbq.exe"
However, trying to create the primary index using:
“CREATE PRIMARY INDEX ON Users USING GSI;”

returns:
“←[31m ERROR 5000 : Post http://localhost:8093/query: dial tcp 127.0.0.1:8093: ConnectEx tcp: No connection could be made because the target machine actively refused it. ←[0m”

Post 8093 is opened in windows firewall.

What should I do ?

Itay

P.S. Just ran into this. Is there a better way to enable n1ql in an upgraded cluster that shouldn’t really be taken down and interrupted ?