

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 列出 Amazon RDS 中的資料庫參數群組
<a name="USER_WorkingWithParamGroups.Listing"></a>

您可以列出您為 AWS 帳戶建立的資料庫參數群組。

**注意**  
當您為特定資料庫引擎和版本建立資料庫執行個體時，會從預設的參數範本自動建立預設的參數群組。這些預設參數群組包含偏好的參數設定，無法修改。當您建立自訂參數群組時，您可以修改參數設定。

## 主控台
<a name="USER_WorkingWithParamGroups.Listing.CON"></a>

**列出 AWS 帳戶的所有資料庫參數群組**

1. 登入 AWS 管理主控台 並開啟位於 https：//[https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/) 的 Amazon RDS 主控台。

1. 在導覽窗格中，選擇 **Parameter groups (參數群組)**。

   資料庫參數群組隨即會出現在清單中。

## AWS CLI
<a name="USER_WorkingWithParamGroups.Listing.CLI"></a>

若要列出 AWS 帳戶的所有資料庫參數群組，請使用 AWS CLI [https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-parameter-groups.html](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-parameter-groups.html) 命令。

**Example**  
以下範例列出 AWS 帳戶的所有可用資料庫參數群組。  

```
aws rds describe-db-parameter-groups
```
此命令會傳回類似以下的回應：  

```
DBPARAMETERGROUP  default.mysql8.0     mysql8.0  Default parameter group for MySQL8.0
DBPARAMETERGROUP  mydbparametergroup   mysql8.0  My new parameter group
```
以下範例說明 *mydbparamgroup1* 參數群組。  
針對 Linux、macOS 或 Unix：  

```
aws rds describe-db-parameter-groups \
    --db-parameter-group-name mydbparamgroup1
```
在 Windows 中：  

```
aws rds describe-db-parameter-groups ^
    --db-parameter-group-name mydbparamgroup1
```
此命令會傳回類似以下的回應：  

```
DBPARAMETERGROUP  mydbparametergroup1  mysql8.0  My new parameter group
```

## RDS API
<a name="USER_WorkingWithParamGroups.Listing.API"></a>

若要列出 AWS 帳戶的所有資料庫參數群組，請使用 RDS API [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBParameterGroups.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBParameterGroups.html)操作。