How to view data in Couchbase database?
To view data in the Couchbase database, you can use the Couchbase command line utility (couchbase-cli) or the Couchbase Web Console.
Utilize the couchbase-cli command line utility:
- Open the terminal or command prompt.
- Navigate to the installation directory of Couchbase Server.
- Display a list of servers using the Couchbase CLI. Provide the cluster address, username, and password.
- –
is the name that you use on a website or social media platform. - – secret code
- Extract the contents of a specific bucket using the command “./couchbase-cli bucket-dump” with the parameters for the cluster address (-c), username (-u), password (-p), and bucket name (–bucket).
- The name of the bucket.
Access the Couchbase web console:
- http://localhost:8091
- Log in to the console using administrator credentials.
- Select the bucket you want to view data for from the left navigation menu.
- On the detailed information page of the bucket, you can view the data within the bucket. You can browse the data using keys or by designing document views.
Please note that the above method is only applicable to Couchbase Server. If you are using Couchbase Lite or Couchbase Mobile, please refer to the respective documentation to learn how to view the data.