デフォルトでは、MySQL DB インスタンスは MySQL データベースに固有の DB パラメータグループを使用します。このパラメータグループには、MySQL データベースエンジンのパラメータが含まれています。パラメータグループの操作とパラメータの設定については、「Amazon RDS のパラメータグループ」を参照してください。
RDS for MySQL パラメータは、選択したストレージエンジンのデフォルト値に設定されます。MySQL パラメータの詳細については、MySQL のドキュメント
RDS コンソールまたは AWS CLI を使用して、特定の RDS for MySQL バージョンで使用可能なパラメータを表示できます。RDS コンソールで MySQL パラメータグループ内のパラメータを表示する方法については、「Amazon RDS のDB パラメータグループのパラメータ値の表示」を参照してください。
AWS CLI を使用して describe-engine-default-parameters
コマンドを実行すると、RDS for MySQL バージョンのパラメータを表示できます。--db-parameter-group-family
オプションには、次の値のうち 1 つを指定します。
-
mysql8.4
-
mysql8.0
-
mysql5.7
例えば RDS for MySQL バージョン 8.0 のパラメータを表示するには、次のコマンドを実行します。
aws rds describe-engine-default-parameters --db-parameter-group-family mysql8.0
出力は次のようになります。
{
"EngineDefaults": {
"Parameters": [
{
"ParameterName": "activate_all_roles_on_login",
"ParameterValue": "0",
"Description": "Automatically set all granted roles as active after the user has authenticated successfully.",
"Source": "engine-default",
"ApplyType": "dynamic",
"DataType": "boolean",
"AllowedValues": "0,1",
"IsModifiable": true
},
{
"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
},
{
"ParameterName": "auto_generate_certs",
"Description": "Controls whether the server autogenerates SSL key and certificate files in the data directory, if they do not already exist.",
"Source": "engine-default",
"ApplyType": "static",
"DataType": "boolean",
"AllowedValues": "0,1",
"IsModifiable": false
},
...
RDS for MySQL バージョン 8.0 の変更可能なパラメータのみを一覧表示するには、次のコマンドを実行します。
Linux、macOS、Unix の場合:
aws rds describe-engine-default-parameters --db-parameter-group-family mysql8.0 \ --query 'EngineDefaults.Parameters[?IsModifiable==`true`]'
Windows の場合:
aws rds describe-engine-default-parameters --db-parameter-group-family mysql8.0 ^ --query "EngineDefaults.Parameters[?IsModifiable==`true`]"