如何在 Amazon Aurora Serverless MySQL 5.7.12

问题描述

我正在使用 Amazon aurora Serverless MysqL 集群 (MysqL 5.7) 并且想要更改当前设置为认值的全局变量 default_authentication_plugin 的值,即。 MysqL_native_password

这些是我用来更新认身份验证插件的命令

SET GLOBAL default_authentication_plugin = 'sha256_password'; 
SET @@GLOBAL.default_authentication_plugin = 'sha256_password';

但是我遇到了以下错误

enter image description here

从文档中,我可以看到 default_authentication_plugin 不是动态变量。

enter image description here

另外,我已经在数据库集群参数组中检查了 default_authentication_plugin 参数在那里也不可用。

在这种情况下,如何更改 default_authentication_plugin 的值?有人可以帮我吗?

解决方法

向 AWS Support 提出这个问题,下面是我得到的答复。

目前无法更新 default_authentication_plugin 全局变量的值。但是 Amazon Aurora 和 RDS 实例确实支持 sha256_password auth 插件。

以下命令可用于创建具有 sha256 哈希密码的用户。

CREATE USER '<username>'@'%' IDENTIFIED WITH sha256_password BY '<password>';

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...