

# MariaDB のパラメータ
<a name="Appendix.MariaDB.Parameters"></a>

デフォルトでは、MariaDB DB インスタンスは MariaDB データベースに固有の DB パラメータグループを使用します。このパラメータグループには、MySQL データベースエンジンの Amazon RDS DB パラメータグループに含まれるいくつかのパラメータがありますが、すべてのパラメータがあるわけではありません。また、いくつかの新しい MariaDB 固有のパラメータも含まれます。パラメータグループの操作とパラメータの設定については、「[Amazon RDS のパラメータグループ](USER_WorkingWithParamGroups.md)」を参照してください。

## MariaDB パラメータの表示
<a name="Appendix.MariaDB.Parameters.Viewing"></a>

RDS for MariaDB パラメータは、選択したストレージエンジンのデフォルト値に設定されます。MariaDB パラメータの詳細については、[MariaDB のドキュメント](http://mariadb.com/kb/en/mariadb/documentation/)を参照してください。MariaDB ストレージエンジンの詳細については、「[Amazon RDS の MariaDB でサポートされているストレージエンジン](MariaDB.Concepts.Storage.md)」を参照してください。

特定の RDS for MariaDB バージョンで使用できるパラメータは、RDS コンソールまたは AWS CLI で確認できます。RDS コンソールでの MariaDB パラメータグループ内のパラメータの表示方法については、「[Amazon RDS のDB パラメータグループのパラメータ値の表示](USER_WorkingWithParamGroups.Viewing.md)」を参照してください。

AWS CLI を使用して [https://docs.aws.amazon.com/cli/latest/reference/rds/describe-engine-default-parameters.html](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-engine-default-parameters.html) コマンドを実行すると、RDS for MariaDB バージョンのパラメータを表示できます。`--db-parameter-group-family` オプションには、次の値のうち 1 つを指定します。
+ `mariadb11.8`
+ `mariadb11.4`
+ `mariadb10.11`
+ `mariadb10.6`
+ `mariadb10.5`
+ `mariadb10.4`
+ `mariadb10.3`

例えば、RDS for MariaDB バージョン 10.6 のパラメータを表示するには、次のコマンドを実行します。

```
aws rds describe-engine-default-parameters --db-parameter-group-family mariadb10.6
```

出力は次のようになります。

```
{
    "EngineDefaults": {
        "Parameters": [
            {
                "ParameterName": "alter_algorithm",
                "Description": "Specify the alter table algorithm.",
                "Source": "engine-default",
                "ApplyType": "dynamic",
                "DataType": "string",
                "AllowedValues": "DEFAULT,COPY,INPLACE,NOCOPY,INSTANT",
                "IsModifiable": true
            },
            {
                "ParameterName": "analyze_sample_percentage",
                "Description": "Percentage of rows from the table ANALYZE TABLE will sample to collect table statistics.",
                "Source": "engine-default",
                "ApplyType": "dynamic",
                "DataType": "float",
                "AllowedValues": "0-100",
                "IsModifiable": true
            },
            {
                "ParameterName": "aria_block_size",
                "Description": "Block size to be used for Aria index pages.",
                "Source": "engine-default",
                "ApplyType": "static",
                "DataType": "integer",
                "AllowedValues": "1024-32768",
                "IsModifiable": false
            },
            {
                "ParameterName": "aria_checkpoint_interval",
                "Description": "Interval in seconds between automatic checkpoints.",
                "Source": "engine-default",
                "ApplyType": "dynamic",
                "DataType": "integer",
                "AllowedValues": "0-4294967295",
                "IsModifiable": true
            },
        ...
```

RDS for MariaDB バージョン 10.6 の変更可能なパラメータのみを一覧表示するには、次のコマンドを実行します。

Linux、macOS、Unix の場合:

```
aws rds describe-engine-default-parameters --db-parameter-group-family mariadb10.6 \
   --query 'EngineDefaults.Parameters[?IsModifiable==`true`]'
```

Windows の場合:

```
aws rds describe-engine-default-parameters --db-parameter-group-family mariadb10.6 ^
   --query "EngineDefaults.Parameters[?IsModifiable==`true`]"
```

## 使用できない MySQL パラメータ
<a name="Appendix.MariaDB.Parameters.MySQLNotAvailable"></a>

以下の MySQL パラメータは、MariaDB 固有の DB パラメータグループでは使用できません。
+ bind\_address
+ binlog\_error\_action
+ binlog\_gtid\_simple\_recovery
+ binlog\_max\_flush\_queue\_time
+ binlog\_order\_commits
+ binlog\_row\_image
+ binlog\_rows\_query\_log\_events
+ binlogging\_impossible\_mode
+ block\_encryption\_mode
+ core\_file
+ default\_tmp\_storage\_engine
+ div\_precision\_increment
+ end\_markers\_in\_json
+ enforce\_gtid\_consistency
+ eq\_range\_index\_dive\_limit
+ explicit\_defaults\_for\_timestamp
+ gtid\_executed
+ gtid-mode
+ gtid\_next
+ gtid\_owned
+ gtid\_purged
+ log\_bin\_basename
+ log\_bin\_index
+ log\_bin\_use\_v1\_row\_events
+ log\_slow\_admin\_statements
+ log\_slow\_slave\_statements
+ log\_throttle\_queries\_not\_using\_indexes
+ master-info-repository
+ optimizer\_trace
+ optimizer\_trace\_features
+ optimizer\_trace\_limit
+ optimizer\_trace\_max\_mem\_size
+ optimizer\_trace\_offset
+ relay\_log\_info\_repository
+ rpl\_stop\_slave\_timeout
+ slave\_parallel\_workers
+ slave\_pending\_jobs\_size\_max
+ slave\_rows\_search\_algorithms
+ storage\_engine
+ table\_open\_cache\_instances
+ timed\_mutexes
+ transaction\_allow\_batching
+ validate-password
+ validate\_password\_dictionary\_file
+ validate\_password\_length
+ validate\_password\_mixed\_case\_count
+ validate\_password\_number\_count
+ validate\_password\_policy
+ validate\_password\_special\_char\_count

MySQL パラメータの詳細については、[MySQL のドキュメント](https://dev.mysql.com/doc/refman/8.0/en/)を参照してください。