新电脑安装最新版本的Mysql,用Navicat Premium连接,提示:authentication plugin caching_sha2

因为mysql8.0开始更新了验证方式,Navicat Premium版本连接新MySQL的时候,还是上一个版本的认证方式。

不仅Navicat Premium会出现这个问题,如果没有使用最新的jdbc驱动包,jdbc代码连接也会出问题。

所以解决方法无非两种:

1、更改Mysql8的密码认证方式为上一个版本的

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
FLUSH PRIVILEGES;   #刷新权限

mysql8.*的新特性 caching_sha2_password 密码加密方式

以前版本的mysql密码加密使用的是 mysql_native_password
新添加的用户密码默认使用的 caching_sha2_password
如果在以前mysql基础上升级的 就得用户使用的密码加密使用的是 mysql_native_password
如果使用以前的密码加密方式,就修改文件 /etc/my.cnf
[mysqld]
default_authentication_plugin=mysql_native_password

2、安装5.7最新版本

Mysql8.0&Mysql5.7&Mysql5.6&Mysql5.5特性对比

authentication plugin caching_sha2相关推荐

  1. 【问题解决】连接mysql 8错误:authentication plugin 'caching_sha2_password

    在刚安装好mysql8,使用native连接的时候报错 authentication plugin 'caching_sha2_password'... 首先确保服务已开启,然后通过cmd命令进入my ...

  2. Navicat连接MySQL,出现2059 - authentication plugin ‘caching_sha2_password‘的解决方案

    Navicat连接MySQL,出现2059 - authentication plugin 'caching_sha2_password'的解决方案 参考文章: (1)Navicat连接MySQL,出 ...

  3. golang连接mysql报错:this authentication plugin is not supported 解决方案

    MySQL升级8.0以上版本后,在用第三方库github.com/Go-SQL-Driver/MySQL打开数据库时会报错this authentication plugin is not suppo ...

  4. mysql错误:this authentication plugin is not supported

    this authentication plugin is not supported 应用程序连接mysql docker一直报错:this authentication plugin is not ...

  5. SpringBoot连接Mysql数据库遇到Unable to load authentication plugin ‘caching_sha2_password解决方案

    遇到问题 o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: S1009 o.h.engine.jdbc.spi.SqlE ...

  6. 【解决】Authentication plugin 'caching_sha2_password' cannot be loaded

    2059 Authentication plugin 'caching_sha2_password' cannot be loaded 请直接执行以下代码,并注意替换用户名和密码 ALTER USER ...

  7. ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password‘ cannot be loaded

    场景 Docker中部署Mysql8数据库: Docker中部署Mysql8数据库_BADAO_LIUMANG_QIZHI的博客-CSDN博客 使用Docker部署Mysql8的服务器之后,使用本地的 ...

  8. NavicatPremium连接MySQL出现异常Authentication plugin ‘caching_sha2_password‘ cannot be loaded的解决方案

    一.出现异常原因 由于个人本机安装的mysql是8.0,在使用Navicat连接数据库时,出现Authentication plugin 'caching_sha2_password' cannot ...

  9. SQLAlchemy 报错 NotSupportedError: Authentication plugin ‘caching_sha2_password’ is not supported 解决方法

    报错内容 在使用 python SQLAlchemy 连接数据库时,遇到以下错误: NotSupportedError: Authentication plugin 'caching_sha2_pas ...

最新文章

  1. 「SAP技术」SAP MM 批次管理的物料创建DN时无存储地点就不能输入批次值?
  2. 曾是谷歌程序员,抛下百万年薪创业,4 年成就 7 亿用户,今身价百亿!
  3. VS 2019要来了,是时候了解一下C# 8.0新功能
  4. 汇编试验五:编写、调试具有多个段的程序
  5. 扫盲:php session缓存至memcached中的方法
  6. Apollo配置中心热加载mysql_Apollo 配置中心部署注意事项
  7. WordPress 主题教程 #2:模板文件和模板
  8. HBase Java API类介绍
  9. Android开发使用一行代码实现点击切换下一张图片
  10. 大学生竞赛管理系统项目
  11. 史上最简单的Map转List的方式
  12. SVM支持向量机原理及核函数
  13. 求循环群的生成元及子群(不一定对-_-#)
  14. 电路板中的常见电子元器件种类汇总
  15. CEF3如何不加载图片以方便采集信息
  16. 五次多项式对2R平面机器人关节的轨迹控制
  17. mysql xa 序列化_MYSQL 的数据序列化Api接口详情
  18. 笨办法学python3进阶篇下载_笨办法学Python 3:进阶篇
  19. Android自定义控件(二)——支付宝支付成功动画
  20. 泰国九日自助游攻略(清迈+普吉+曼谷)

热门文章

  1. html5 密码框明文,elementUI的密码框的密文和明文
  2. java jsp if else if_jsp页面使用if else语句 | 学步园
  3. php array colum,php5.5新数组函数array_column使用
  4. zzulioj1111: 多个整数的逆序输出(函数专题)
  5. 公关文秘专业要学计算机,文秘相关专业有哪些
  6. lua 字符串包含_Programming in Lualua学习第11期 Lua模块与包
  7. Android中列表动态删除item,如何删除Android ExpandableListView中某个group item的child item?...
  8. 10.8.8.8柠檬wifi网页登录_基于企业邮箱进行wifi实名认证的方案
  9. python爬取哔哩哔哩视频_Python实现视频爬取下载
  10. python可以在多平台运行 体现了_Python:使用异常处理来判断运行的平台