← 返回命令列表

Linux command

doctl-databases 命令

文本

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

常用示例

List database clusters

doctl databases list

Create a database cluster

doctl databases create [name] --engine [pg] --region [nyc1] --size [db-s-1vcpu-1gb]

Get cluster info

doctl databases get [cluster_id]

Delete a cluster

doctl databases delete [cluster_id]

Get connection details

doctl databases connection [cluster_id]

Resize cluster

doctl databases resize [cluster_id] --size [db-s-2vcpu-4gb]

说明

doctl databases manages DigitalOcean Managed Databases including PostgreSQL, MySQL, Redis, MongoDB, and Kafka clusters. The command provides full lifecycle management for database clusters, from creation and configuration to monitoring and deletion. Managed databases handle automated backups, updates, high availability, and scaling. The tool supports various database engines optimized for different use cases, from relational databases to caching and streaming platforms. Additional subcommands manage database users, connection pools, read replicas, firewall rules, and maintenance windows. Connection strings and credentials can be retrieved for application integration.

FAQ

What is the doctl-databases command used for?

doctl databases manages DigitalOcean Managed Databases including PostgreSQL, MySQL, Redis, MongoDB, and Kafka clusters. The command provides full lifecycle management for database clusters, from creation and configuration to monitoring and deletion. Managed databases handle automated backups, updates, high availability, and scaling. The tool supports various database engines optimized for different use cases, from relational databases to caching and streaming platforms. Additional subcommands manage database users, connection pools, read replicas, firewall rules, and maintenance windows. Connection strings and credentials can be retrieved for application integration.

How do I run a basic doctl-databases example?

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

Where can I find more doctl-databases examples?

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