首页 > 解决方案 > 参数组更改未反映在 Aurora Serverless 数据库集群上

问题描述

我正在尝试将我的 Aurora mysql 5.6.10(启用数据 API)实例中的binlog_format参数更新为ROW,但我无法更改它。

我已经相应地更新了我的自定义参数组,但是这些更改在我运行时不会反映在集群上show variables like 'binlog_format'

还有其他我想念的方式吗?

标签: mysqlamazon-web-servicesamazon-aurora

解决方案


您必须通过运行以下命令来检查无服务器引擎是否支持特定的属性修改:

aws rds describe-db-cluster-parameters --db-cluster-parameter-group-name <param-group-name>

如果您阅读上述语句的输出,它会显示 SupportedEngineModes 的“已配置”:

       {
            "ParameterName": "binlog_format",
            "ParameterValue": "OFF",
            "Description": "Binary logging format for replication",
            "Source": "system",
            "ApplyType": "static",
            "DataType": "string",
            "AllowedValues": "ROW,STATEMENT,MIXED,OFF",
            "IsModifiable": true,
            "ApplyMethod": "pending-reboot",
            "SupportedEngineModes": [
                "provisioned"
            ]
        }

对于可修改的参数,理想状态是这样的:

       {
            "ParameterName": "character_set_server",
            "Description": "The server's default character set.",
            "Source": "engine-default",
            "ApplyType": "dynamic",
            "DataType": "string",
            "AllowedValues": "big5,dec8,cp850,hp8,koi8r,latin1,latin2,swe7,ascii,ujis,sjis,hebrew,tis620,euckr,koi8u,gb2312,greek,cp1250,gbk,latin5,armscii8,utf8,ucs2,cp866,keybcs2,macce,macroman,cp852,latin7,utf8mb4,cp1251,utf16,cp1256,cp1257,utf32,binary,geostd8,cp932,eucjpms",
            "IsModifiable": true,
            "ApplyMethod": "pending-reboot",
            "SupportedEngineModes": [
                "provisioned",
                "serverless"
            ]
        },

推荐阅读