问题描述
我正在使用 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 不是动态变量。
另外,我已经在数据库集群参数组中检查了 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>';