作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已使用 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/
我是一名优秀的程序员,十分优秀!