【问题标题】:The server requested authentication method unknown to the client in MySQL8.20MySQL8.20中服务器请求客户端未知的身份验证方法
【发布时间】:2020-05-28 19:45:53
【问题描述】:

我的MySQL知识很简单。

我安装了 MySQL 8.20,正如here 所说,身份验证插件已更改。 我试着像here 说,

登录 MySQL:

mysql -u root -p

写道:

创建用户'sha2user'@'localhost'

通过“密码”识别为caching_sha2_password;

在我的文件 /etc/mysql/mysql.cnf 中我写道:

default_authentication_plugin=caching_sha2_password

并重新启动 MySQL:

sudo systemctl restart mysq

然后在我的 Adminer 上我写了 user: root 和 Password: my new password,但收到了以下警告:

服务器请求客户端未知的身份验证方法

有人可以帮帮我吗?

【问题讨论】:

  • 尝试同时允许 127.0.0.1 或在您尝试登录时将您的主机指定为 localhost
  • 尝试更新Adminer。
  • @我按照你说的做,并发出同样的警告。@Milan Velebit 我尝试使用 Adminer 进行更新,但因为我使用的是 debian,所以它没有更新它。
  • @Milan Velebit 我在我的 debian 上删除了旧的管理员,下载并安装了新版本 4.7.7,但同样的升温 服务器请求客户端未知的身份验证方法

标签: mysql linux


【解决方案1】:

所以,找到了解决方案...

我的问题是如何安装 ALL... 我在我的 Debian 上删除了所有的 Mysql,我用dpkg -l | grep -e mysql -e mariadb 搜索我拥有的 Mysql 和 MariaDB,而不是使用 Synaptic 然后删除所有.. 比 Folge 都像 here 说的那样.. 现在有最后一个管理员,4.7.7 和所有工作肠道..

【讨论】:

    猜你喜欢
    • 2018-10-10
    • 1970-01-01
    • 1970-01-01
    • 2015-05-02
    • 2020-12-03
    • 2018-11-06
    • 2019-05-05
    • 1970-01-01
    • 2019-02-21
    相关资源
    最近更新 更多