I tried to use the following code to make the DB connection between my web application to Couchbase DB server and the result is successfully.
// Connect to localhost
Cluster cluster = CouchbaseCluster.create();
// Open the default bucket and the “beer-sample” one
Bucket defaultBucket = cluster.openBucket();
Bucket beerSampleBucket = cluster.openBucket(“beer-sample”);
// Disconnect and clear all allocated resources
Currently, I just need to provide the server and bucket names for making the DB connection between my App.
My question is, do we need to setup a login account for the DB login authentication?