

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

# 在 Amazon RDS 中檢視資料庫參數群組的參數值
<a name="USER_WorkingWithParamGroups.Viewing"></a>

您可以從資料庫參數群組取得所有參數與其值的清單。

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

**檢視資料庫參數群組的參數值**

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

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

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

1. 選擇參數群組的名稱，以查看其參數清單。

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

若要檢視資料庫參數群組的參數值，請使用 AWS CLI [https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-parameters.html](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-parameters.html) 命令搭配下列必要參數。
+ `--db-parameter-group-name`

**Example**  
以下範例列出資料庫參數群組 *mydbparametergroup*​ 的參數和參數值。  

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

```
DBPARAMETER  Parameter Name            Parameter Value  Source           Data Type  Apply Type  Is Modifiable
DBPARAMETER  allow-suspicious-udfs                      engine-default   boolean    static      false
DBPARAMETER  auto_increment_increment                   engine-default   integer    dynamic     true
DBPARAMETER  auto_increment_offset                      engine-default   integer    dynamic     true
DBPARAMETER  binlog_cache_size         32768            system           integer    dynamic     true
DBPARAMETER  socket                    /tmp/mysql.sock  system           string     static      false
```

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

若要檢視資料庫參數群組的參數值，請搭配下列必要參數使用 RDS API [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBParameters.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBParameters.html) 命令。
+ `DBParameterGroupName`