0

我正在使用 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';

但我得到以下错误

在此处输入图像描述

从文档中,我可以看到 default_authentication_plugin 不是动态变量。 在此处输入图像描述

此外,我在 DB Cluster Parameter Group 中检查了 default_authentication_plugin 参数在那里也不可用。

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

4

1 回答 1

0

我得到的答复是通过 AWS Support 提出的这个问题。

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

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

CREATE USER '<username>'@'%' IDENTIFIED WITH sha256_password BY '<password>';
于 2021-01-09T16:03:55.717 回答