iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >MySQL主从复制报错Authentication plugin ‘caching_sha2_password‘ reported error: Authentication requires sec
  • 910
分享到

MySQL主从复制报错Authentication plugin ‘caching_sha2_password‘ reported error: Authentication requires sec

mysql数据库java 2023-10-03 21:10:01 910人浏览 泡泡鱼
摘要

在从库执行操作: show slave status\G后,报如下错误。 Slave_io_Running: Connecting(如果成功,这里应该显示Yes)  error connecting to master 'xiaomin

在从库执行操作: show slave status\G后,报如下错误。

Slave_io_Running: Connecting(如果成功,这里应该显示Yes)

 error connecting to master 'xiaoming@192.168.231.131:3306' - retry-time: 60 retries: 1 message: Authentication plugin 'caching_sha2_passWord' reported error: Authentication requires secure connection.

 从报错的提示中可以看出关键词:plugin 'caching_sha2_password' reported error

进入主库

执行语句:use Mysql

再执行:select plugin from`user` where user = '你的用户的名字';(我这边是xiaoming)

不出意外查询的结果为:caching_sha2_password

修改为mysql_native_password即可解决

执行语句进行修改:ALTER USER '你的名字'@'%' IDENTIFIED WITH mysql_native_password BY '你的密码';

查询结果如下就是修改成功。再进行操作就连接成功了

来源地址:https://blog.csdn.net/qq_58645958/article/details/130272982

您可能感兴趣的文档:

--结束END--

本文标题: MySQL主从复制报错Authentication plugin ‘caching_sha2_password‘ reported error: Authentication requires sec

本文链接: https://www.lsjlt.com/news/423208.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作