gpt4 book ai didi

mysql - sha256_password 已弃用警告填充日志

转载 作者:行者123 更新时间:2023-12-04 10:01:16 26 4
gpt4 key购买 nike

我已经在单主模式下配置了 InnoDB MySQL v8.0.19 组复制集群。根据建议的模式,我有几个 web 应用程序通过他们自己的 MySQL Router 实例以 1:1 的关系访问集群。

一切似乎都运行良好,但我的主服务器的日志中充满了以下消息:

[警告] [MY-013360] [服务器] 插件 sha256_password 报告:“sha256_password”已弃用,将在 future 版本中删除。请改用 caching_sha2_password'

转储 mysql.user 表,我看到生成的 mysql_router 用户正在使用 'mysql_native_password' 插件,而所有其他用户正在使用正确的 'caching_sha2_password' 插件。

这些 mysql 路由器是唯一访问服务器的客户端,所以我怀疑它在提示它如何访问集群。

有谁知道如何解决这个警告?

最佳答案

ALTER USER可以更改身份验证插件:

ALTER USER usernmae@remoteip
IDENTIFIED WITH 'caching_sha2_password'
RETAIN CURRENT PASSWORD

关于mysql - sha256_password 已弃用警告填充日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61809615/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com