← 返回命令列表

Linux command

doctl-databases-db 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List databases in cluster

doctl databases db list [cluster_id]

Create a database

doctl databases db create [cluster_id] [db_name]

Delete a database

doctl databases db delete [cluster_id] [db_name]

Get database details

doctl databases db get [cluster_id] [db_name]

List databases

doctl databases db list [cluster_id] --output json

说明

doctl databases db manages individual databases within a DigitalOcean managed database cluster. Within a single database cluster, you can create multiple isolated databases. This allows hosting separate applications or environments (development, staging, production) on the same cluster infrastructure. Each database can have its own set of users and permissions while sharing the cluster's compute and storage resources. The command handles database creation, listing, and deletion within the cluster. This is distinct from managing the cluster itself, which is handled by the parent doctl databases command.

FAQ

What is the doctl-databases-db command used for?

doctl databases db manages individual databases within a DigitalOcean managed database cluster. Within a single database cluster, you can create multiple isolated databases. This allows hosting separate applications or environments (development, staging, production) on the same cluster infrastructure. Each database can have its own set of users and permissions while sharing the cluster's compute and storage resources. The command handles database creation, listing, and deletion within the cluster. This is distinct from managing the cluster itself, which is handled by the parent doctl databases command.

How do I run a basic doctl-databases-db example?

Run `doctl databases db list [cluster_id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more doctl-databases-db examples?

This page includes 5 examples for doctl-databases-db, plus related commands for nearby Linux tasks.