Posted by: bgopi | October 3, 2016

Accessing password protected bucket in Couchbase 4 using CBQ

When we try to access password protected buckets just by getting in to cbq in Couchbase version 4.0, it shows 10000 error saying “Authorization Failed Keyspace data”, we need to provide cbauth to get in to cbq to access these buckets. Follow below to access password protected bucket:

cd /opt/couchbase/bin (this may change based on installation platform and preferences)

and then

./cbq -engine=”http://<bucket_name&gt;:<bucket_password>@localhost:8093/“
once you are in cbq, run below command to make sure you can access all buckets:
select * from system:keyspaces;

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: