Easy learning with example program codes

Create Database in CouchDB

Create Database

In CouchDB, documents are stored in databases. Databases are thus outermost structure. To create databases in CouchDB one can either use the cURL utility or Fauxton web interface.

Using Fauxton:

  • Open the following link in a browser:
  • Click on the “Create Database” tab.
  • Write the database name to be created. For Example: ‘Company’
  • A message will be displayed on successful database creation.
  • Check the newly created database in the database tab.

Using cURL Utility:


curl -X PUT


curl -X PUT

A database named “company” is created. The server in response for a successful database creation will return a JSON document with content “ok”: true.


List out all the existing databases using the below command:

curl -X GET

Check Database Information:

Syntax: To retrieve the information about the database.

curl -X GET


curl -X GET


Here, we are retrieving information for a database named “company”.


Please follow and like us:

Copyright © 2020 CodesJava Protection Status