LinuxCommandLibrary

doctl-databases-db

manage individual databases within a cluster

TLDR

List databases in cluster

$ doctl databases db list [cluster_id]
copy
Create a database
$ doctl databases db create [cluster_id] [db_name]
copy
Delete a database
$ doctl databases db delete [cluster_id] [db_name]
copy
Get database details
$ doctl databases db get [cluster_id] [db_name]
copy

SYNOPSIS

doctl databases db command [options]

DESCRIPTION

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.

SUBCOMMANDS

list

List databases in a cluster.
create
Create a database.
delete
Delete a database.
get
Get database info.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community