本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
在 Aurora 中創建數據庫參數組
您可以使用 AWS Management Console、或建立新資料庫參數群組RDSAPI。 AWS CLI
下列限制適用於資料庫參數群組名稱:
- 
				名稱必須為 1 到 255 個字母、數字或連字號。 預設參數群組名稱可以包括句點,例如 default.mysql8.0。不過,自訂參數群組名稱不能包括句點。
- 
				第一個字元必須是字母。 
- 
				名稱不能以連字號結尾或包含兩個連續連字號。 
建立資料庫參數群組
- 
						登錄 AWS Management Console 並在打開 Amazon RDS 控制台https://console.aws.amazon.com/rds/ 。 
- 
						在導覽窗格中,選擇 Parameter groups (參數群組)。 
- 
						選擇 Create parameter group (建立參數群組)。 
- 
						在「參數群組名稱」中,輸入新資料庫參數群組的名稱。 
- 
						在說明中,輸入新資料庫參數群組的說明。 
- 
						針對「引擎類型」,選擇您的資料庫引擎。 
- 
						對於「參數群組族群」,請選擇資料庫參數群組族群。 
- 
						如果適用,請選擇「資料庫參數群組」做為類型。 
- 
						選擇 Create (建立)。 
若要建立資料庫參數群組,請使用 AWS CLI create-db-parameter-group指令。下列範例會針對我的 8.0 SQL 版建立一個名為 mydb參數群組/參數群組的資料庫參數群組,其中包含「我的新參數群組」的說明。
包含下列必要參數:
- 
						--db-parameter-group-name
- 
						--db-parameter-group-family
- 
						--description
若要列出所有可用的參數群組系列,請使用下列命令:
aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"
注意
輸出包含重覆項目。
範例
對於LinuxmacOS、或Unix:
aws rds create-db-parameter-group \ --db-parameter-group-namemydbparametergroup\ --db-parameter-group-familyaurora-mysql5.7\ --description"My new parameter group"
在 Windows 中:
aws rds create-db-parameter-group ^ --db-parameter-group-namemydbparametergroup^ --db-parameter-group-familyaurora-mysql5.7^ --description"My new parameter group"
此命令會產生類似下列的輸出:
DBPARAMETERGROUP mydbparametergroup aurora-mysql5.7 My new parameter group
若要建立資料庫參數群組,請使用此RDSAPICreateDBParameterGroup作業。
包含下列必要參數:
- 
						DBParameterGroupName
- 
						DBParameterGroupFamily
- 
						Description