如何解决如何在 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';
但是我遇到了以下错误
从文档中,我可以看到 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>';
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。