首页 > 其他分享 >解决Authentication plugin ‘caching_sha2_password‘ cannot be loaded问题

解决Authentication plugin ‘caching_sha2_password‘ cannot be loaded问题

时间:2023-12-23 17:14:54浏览次数:27  
标签:sha2 加密 plugin 密码 mysql caching password

感谢,参考文章:https://blog.csdn.net/qq_46059247/article/details/125333706

报错原因

用图形化用户界面连接的MySQL8.0时,
报错信息:Authentication plugin ‘caching_sha2_password’ cannot be loaded

MySQL8.0之前的版本中加密规则是mysql_native_password,
而在MySQL8.0之后,加密规则是caching_sha2_password。

解决方法

1、升级Navicat驱动(博主用的是破译版,此方法不大可行)
2、MySQL用户登录密码加密规则还原成mysql_native_password

在这里插入图片描述

步骤

1、登录Mysql
mysql -u root -p

2、修改账户密码加密规则并更新用户密码
//修改加密规则
ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘password’ PASSWORD EXPIRE NEVER;

//更新一下用户的密码
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’;

3、刷新权限并重置密码
//刷新权限
FLUSH PRIVILEGES;

4、重置密码
//此处请自定义密码
alter user ‘root’@‘localhost’ identified by ‘自定义的密码’;

5、重新打开软件,再次连接数据库即可
在这里插入图片描述

标签:sha2,加密,plugin,密码,mysql,caching,password
From: https://www.cnblogs.com/javaxubo/p/17923307.html

相关文章

  • ICEE-Microchip-MPLAB X IDE-MCC Plugin + MCC Core + MHC(MCC Harmony Core) versio
    https://microchip.my.site.com/s/article/MPLAB-X-MCC-plugin--MCC-Core-and-MCC-Harmony-Core-versions-and-compatibilityAug17,2023•KnowledgerticleNumber:000014642Title:MPLABXMCCplugin,MCCCoreandMCCHarmonyCoreversionsandcompatibilityArticl......
  • mysql审计之插件MariaDB Audit Plugin
    一、概述审计插件是包含在MariaDB中的,所以需要先下载MariaDB然后将server_audit.so审计插件copy出来。MariaDB的10.1版本对应与Oracle的MySQL5.7版本,这里是MariaDB官方下载地址可以从链接里下载MariaDB我做实验使用的版本是8.0.25MariaDB并不兼容mysql5.7......
  • Teamcenter AWC开发报错 ESLintError in plugin "gulp-eslint"
    1、npmrunrefresh没有报错,npmrunbuild会报错✖34problems(1error,33warnings)0errorsand12warningspotentiallyfixablewiththe`--fix`option.[08:47:54]'audit'erroredafter6.31s[08:47:54]ESLintErrorinplugin"gulp-eslint&quo......
  • mysql set column sha2(uuid(),512) as column default value via trigger
    mysql>showcreatetablet3;+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------......
  • nerdctl run -d 报"failed to call cni.Setup: plugin type=\"bridge\" failed (ad
    背景:执行 nerdctl run-d --namenginx-p8080:80nginx时,报如下错误FATA[0000]failedtocreateshimtask:OCIruntimecreatefailed:runccreatefailed:unabletostartcontainerprocess:errorduringcontainerinit:errorrunninghook#0:errorrunningh......
  • Go plugin
    创建plugin_1.go&编译packagemainimport"fmt"funcGreet(namestring){fmt.Println("Hello",name)}gobuild-buildmode=plugin-oxxxx.soplugin_1.go加载和使用这个plugin:packagemainimport("plugin""log&quo......
  • Navicat登陆Mysql8.0报“caching_sha_password”错误
    Navicat登陆Mysql8.0报“caching_sha_password”错误​​官方说明:​https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html解决方案:1.使用本地mysql命令行登录;2.修改登录验证方式--修改登录验证方式ALTERUSER'root'@'localhost'IDENTIF......
  • Navicat登陆Mysql8.0报“caching_sha_password”错误
    Navicat登陆Mysql8.0报“caching_sha_password”错误​​官方说明:​https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html解决方案:1.使用本地mysql命令行登录;2.修改登录验证方式--修改登录验证方式ALTERUSER'root'@'localhost'IDENTIF......
  • Navicat登陆Mysql8.0报“caching_sha_password”错误
    Navicat登陆Mysql8.0报“caching_sha_password”错误​​官方说明:​https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html解决方案:1.使用本地mysql命令行登录;2.修改登录验证方式--修改登录验证方式ALTERUSER'root'@'localhost'IDENTIF......
  • 用matplot和seaborn作图,出现This application failed to start because not Qt platfo
    用matplotlib和seaborn作图,出现这样的弹窗: 尝试过增加环境变量的方法没有解决。使用了一种临时的解决方法:importmatplotlibmatplotlib.use('TKAgg')如果不需要图形化界面,只需要运行后的参数可以使用:importmatplotlibmatplotlib.use('Agg') ......