博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mysql错误:mysql_native_password
阅读量:3941 次
发布时间:2019-05-24

本文共 434 字,大约阅读时间需要 1 分钟。

在使用 Navicat for Mysql连接mysql 8.0时会报如下错误:

mysql> authentication plugin 'caching_sha2_password' cannot be loaded;

mysql8.0 引入了新特性 caching_sha2_password;这种密码加密方式客户端不支持;客户端支持的是mysql_native_password 这种加密方式;

  • 我们可可以查看mysql 数据库中user表的 plugin字段;
mysql> select host,user,plugin from user;

在这里插入图片描述

  • 可以使用命令将他修改成mysql_native_password加密模式
mysql> updates user set plugin='mysql_native_password' where user='root';mysql> select host,user,plugin from user;

在这里插入图片描述

链接成功

转载地址:http://uqnwi.baihongyu.com/

你可能感兴趣的文章
华为路由器配置NAT使内网用户通过外网IP地址方式访问内网服务器示例
查看>>
virt命令
查看>>
15个保障服务器安全的方法:
查看>>
在VMware Workstation 中部署VCSA6.5
查看>>
openstack&ceph
查看>>
ME60 双机热备 奇偶mac负载分担
查看>>
oracle11G安装en
查看>>
关于丢失或者损坏etc/fstab文件后
查看>>
VMware-ESXi-6.5 集成第三方驱动方法
查看>>
Oracle RAC on vSphere 安装手册v2
查看>>
V2V迁移
查看>>
BFD
查看>>
docker网络
查看>>
锐捷交换机的多对多镜像口
查看>>
Linux系统修改编码
查看>>
word文档不能显示图片的处理
查看>>
linux的多桌面环境Xephyr
查看>>
初探debian桌面的管理启动
查看>>
七层协议图
查看>>
华为交换机作为AC的条件
查看>>