I want to connect to couchbase which address is
It is a web url
but never success ,what should I sign connstr?
this is my code:
struct lcb_create_st cropts;
cropts.version = 3;
cropts.v.v3.connstr = “http://184.108.40.206:8091/default”;
I may express clearly = =
Can you show your actual code?
Btw, you most probably just need to pass in the hostname. Check out: http://docs.couchbase.com/developer/c-2.4/getting-started.html
cropts.v.v3.connstr = "couchbase://220.127.116.11/default";
and here, default is the bucketname.
Thanks a lot!
Btw, when I wanna access data by administrator’s identity ,the type field must be LCB_TYPE_CLUSTER?
And are user field and passwd field necessary?
I’ll defer to @mnunberg or @avsej for that question, I’m not a C guy