本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
在 Amazon Aurora 中複製資料庫叢集參數群組
您可複製所建立的自訂資料庫叢集參數群組。如果您已建立資料庫叢集參數群組,並且希望在新資料庫叢集參數群組中包含該組中的大多數自訂參數和值,則複製參數群組是一種方便的解決方案。您可以使用 AWS CLI copy-db-cluster-parameter-group 命令或 RDS API CopyDBClusterParameterGroup 操作來複製資料庫叢集參數群組。
複製資料庫叢集參數群組後,請等待至少 5 分鐘,然後再建立使用該資料庫叢集參數群組的資料庫叢集。執行此動作允許 Amazon RDS 完整複製參數群組,再將其供新資料庫叢集使用。您可以使用 Amazon RDS 主控台
注意
您無法複製預設參數群組。但您可以依照預設參數群組建立新的參數群組。
您無法將資料庫叢集參數群組複製到不同的 AWS 帳戶 或 AWS 區域。
複製資料庫叢集參數群組
-
登入 AWS Management Console 並開啟位於 https://https://console.aws.amazon.com/rds/
的 Amazon RDS 主控台。 -
在導覽窗格中,選擇 Parameter groups (參數群組)。
-
在清單中,選擇您要複製的自訂參數群組。
-
針對 Parameter group actions (參數群組動作),選擇 Copy (複製)。
-
在 New DB parameter group identifier (新資料庫參數群組識別符) 中,輸入新參數群組的名稱。
-
在 Description (描述) 中,輸入新參數群組的描述。
-
請選擇 Copy (複製)。
若要複製資料庫叢集參數群組,請使用 AWS CLI copy-db-cluster-parameter-group
命令搭配下列必要參數:
-
--source-db-cluster-parameter-group-identifier
-
--target-db-cluster-parameter-group-identifier
-
--target-db-cluster-parameter-group-description
以下範例會建立名為 mygroup2
的新資料庫叢集參數群組,該群組為資料庫叢集參數群組 mygroup1
的複本。
範例
對於 Linux、 macOS或 Unix:
aws rds copy-db-cluster-parameter-group \ --source-db-cluster-parameter-group-identifier
mygroup1
\ --target-db-cluster-parameter-group-identifiermygroup2
\ --target-db-cluster-parameter-group-description"DB parameter group 2"
在 Windows 中:
aws rds copy-db-cluster-parameter-group ^ --source-db-cluster-parameter-group-identifier
mygroup1
^ --target-db-cluster-parameter-group-identifiermygroup2
^ --target-db-cluster-parameter-group-description"DB parameter group 2"
若要複製資料庫叢集參數群組,請使用 RDS API CopyDBClusterParameterGroup
操作並搭配下列必要參數:
-
SourceDBClusterParameterGroupIdentifier
-
TargetDBClusterParameterGroupIdentifier
-
TargetDBClusterParameterGroupDescription