

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

# MariaDB 的參數
<a name="Appendix.MariaDB.Parameters"></a>

依預設，MariaDB 資料庫執行個體會使用 MariaDB 資料庫專用的資料庫參數群組。此參數群組包含 MySQL 資料庫引擎的 Amazon RDS 資料庫參數群組中所包含的一部分參數 (而不是全部)。也包含許多新的 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 主控台或 AWS CLI查看特定 RDS for MariaDB 版本的可用參數。如需有關在 RDS 主控台中查看 MariaDB 參數群組參數的資訊，請參閱 [在 Amazon RDS 中檢視資料庫參數群組的參數值](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` 選項指定下列其中一個值：
+ `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>

以下是未在 MariaDB 特定的資料庫參數群組中提供的 MySQL 參數：
+ 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/)。