11.4. Database Management

11.4.1. Creating a database

This will create a database with 3 replicas and 8 shards.

curl -X PUT "http://xxx.xxx.xxx.xxx:5984/database-name?n=3&q=8" --user admin-user

The database is in data/shards. Look around on all the nodes and you will find all the parts.

If you do not specify n and q the default will be used. The default is 3 replicas and 8 shards.

11.4.2. Deleteing a database

curl -X DELETE "http://xxx.xxx.xxx.xxx:5984/database-name --user admin-user

Table Of Contents

Previous topic

11.3. Node Management

Next topic

11.5. Sharding

More Help