When you setup a bucket you can provide a password. Then use SASL to connect to Couchbase Server by using the name of the bucket as username and the password you provided earlier.
Extended, 2011-12-11
I've been reading the source of the memcached extension. Generally, it seems like they are not too many things you can do wrong on the PHP side.
Additional questions:
- Can you make sure no other errors are exposed in the PHP
error_log
? E.g. "Failed to initialize SASL library." or something like that?
- Did you set
memcached.use_sasl = 1
in your php.ini
?
- Did you check Couchbase Server's log for errors when you try to set a key?
I'm not an expert on Couchbase Server though I know my way around CouchDB. In case you have to debug it, I'd try to figure out how to crank up the log level to something like DEBUG
and then see if you can gather any useful information.
I think unless it's one of the first two things then this error is not on the PHP side but maybe in the Couchbase Server release. It looks like the write error is something libmemcached exposes so this means that it's coming from Couchbase Server directly.