gpt4 book ai didi

MySQL 服务器为具有标准密码的用户请求 caching_sha2_password

转载 作者:行者123 更新时间:2023-11-29 15:59:20 25 4
gpt4 key购买 nike

我已使用 caching_sha2_password 身份验证启动并运行 MySQL 数据库。

它允许使用标准密码身份验证(mysql_native_password)创建用户,但是当尝试使用标准身份验证从远程主机连接时,用户收到“服务器请求客户端未知的身份验证方法[caching_sha2_password]... ' 无论如何都会出错。

即使服务器支持caching_sha2_password,是否可以对选定的用户使用旧版身份验证。
原因是 e。 G。对根帐户使用强身份验证,对其他帐户使用标准身份验证,对单个架构的访问受到限制。

(版本 8.0.16 GPL)

最佳答案

您可以在 mysql.user 表的 plugin 列中为每个用户单独指定身份验证方法。查看文档6.2.3 Grant Tables - The user and db Tables :

The server uses the plugin named in the plugin column of an account row to authenticate connection attempts for the account.

关于MySQL 服务器为具有标准密码的用户请求 caching_sha2_password,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56312149/

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