在 Amazon Aurora 中檢視資料庫叢集參數群組的參數值 - Amazon Aurora

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

在 Amazon Aurora 中檢視資料庫叢集參數群組的參數值

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

檢視資料庫叢集參數群組的參數值
  1. 登錄 AWS Management Console 並在打開 Amazon RDS 控制台https://console.aws.amazon.com/rds/

  2. 在導覽窗格中,選擇 Parameter groups (參數群組)

    資料庫叢集參數群組會以 DB cluster parameter group (資料庫叢集參數群組) 出現在 Type (類型) 清單中。

  3. 選擇資料庫叢集參數群組的名稱,以查看參數清單。

若要檢視資料庫叢集參數群組的參數值,請搭配下列必要參數使用 AWS CLI describe-db-cluster-parameters命令。

  • --db-cluster-parameter-group-name

範例

下列範例會以格式列出名為 mydbcluster參數群組/參數群組參數群組的參數和參數值。JSON

此命令會傳回類似以下的回應:

aws rds describe-db-cluster-parameters --db-cluster-parameter-group-name mydbclusterparametergroup
{ "Parameters": [ { "ParameterName": "allow-suspicious-udfs", "Description": "Controls whether user-defined functions that have only an xxx symbol for the main function can be loaded", "Source": "engine-default", "ApplyType": "static", "DataType": "boolean", "AllowedValues": "0,1", "IsModifiable": false, "ApplyMethod": "pending-reboot", "SupportedEngineModes": [ "provisioned" ] }, { "ParameterName": "aurora_binlog_read_buffer_size", "ParameterValue": "5242880", "Description": "Read buffer size used by master dump thread when the switch aurora_binlog_use_large_read_buffer is ON.", "Source": "engine-default", "ApplyType": "dynamic", "DataType": "integer", "AllowedValues": "8192-536870912", "IsModifiable": true, "ApplyMethod": "pending-reboot", "SupportedEngineModes": [ "provisioned" ] }, ...

若要檢視資料庫叢集參數群組的參數值,請搭配下列必要參數使用RDSAPIDescribeDBClusterParameters命令。

  • DBClusterParameterGroupName

在某些情況下,不會顯示允許的參數值。這些一律為參數,其中來源是資料庫引擎預設值。

若要檢視這些參數的值,您可以執行下列SQL陳述式:

  • 我的SQL:

    -- Show the value of a particular parameter mysql$ SHOW VARIABLES LIKE '%parameter_name%'; -- Show the values of all parameters mysql$ SHOW VARIABLES;
  • 後者:SQL

    -- Show the value of a particular parameter postgresql=> SHOW parameter_name; -- Show the values of all parameters postgresql=> SHOW ALL;