首页 > 数据库 >navicat 链接 mysql 2059-Authentication plugin 'caching_sha2_password' cannot be loaded:

navicat 链接 mysql 2059-Authentication plugin 'caching_sha2_password' cannot be loaded:

时间:2023-04-07 23:55:41浏览次数:41  
标签:sha2 加密 plugin 2059 密码 mysql password root native

 

 

出现这个原因是mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password, 解决问题方法有两种,一种是升级navicat驱动,一种是把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 'root';

此处将密码改为root

 

 

标签:sha2,加密,plugin,2059,密码,mysql,password,root,native
From: https://www.cnblogs.com/lslhhh/p/17297728.html

相关文章

  • MySQL新身份验证插件caching_sha2_password
     用sequelpro工具登录,连接失败~!“Authenticationplugin'caching_sha2_password'cannotbeloaded”失败原因:mysql8之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password解决办法:把mysql用户登录密码加密规则还原成mysql_nati......
  • PySide2或PyQt5 运行时提示This application failed to start because no Qt platform
    1.把PySide2或者PyQt5安装在解释器目录下的 \plugins\platforms 目录添加到环境变量Path中。比如,我的环境就是把下面这个路径加到环境变量 Path 中 c:\Python38\Lib\site-packages\PySide2\plugins\platforms 2. 确保环境变量中没有中文......
  • seo优化问题 prerender-spa-plugin
    prerender-spa-plugin预渲染vue-cli是单页项目,只有一个index.html,对seo问题不优化prerender-spa-plugin预渲染可以生产多个目录,每个目录下都有一个index.html适合:一个项目可能某几个页面需要做seoprerender-spa-plugin运用时存在一些bug建议直接替换成prerender-spa-plugin-......
  • 项目打包优化-HardSourceWebpackPlugin
    项目优化的方法HardSourceWebpackPlugin是一个插件,安装的方式npmihard-source-webpack-plugin引入文件,进行config文件的配置进行文件的热加载的,一个项目启动或者打包的时间,超过40s的时候,可以进行项目的优化和热加载。文件的加载,首先hard-source-webpack-plugin会进行文......
  • Failed to start bean 'documentationPluginsBootstrapper';nested exception is jav
    报错:Failedtostartbean‘documentationPluginsBootstrapper’;nestedexceptionisjava.lang.NullPointerException错误项目版本:springboot最新版本<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-sta......
  • C#各种语言HMAC SHA256实现
    语言包含:Javascript,PHP,Java,Groovy,C#,ObjectiveC,Go,Ruby,Python,Perl,Dart,Swift,Rust,Powershell。JavascriptHMACSHA256Runthecodeonlinewiththisjsfiddle.Dependentuponanopensourcejslibrarycalledhttp://code.google.com/p/crypto-js/.<sc......
  • 报错ValidationError: Progress Plugin Invalid Options (非常重要)
    此方法可以解决:使用Vue-ptf时报错:maintemplate.hooks.hotbootstraphasbeenremoved(useyourownruntimemodule和package-lock.json导包( less,lessloader)和(npminstallpdfjs-dist--save)等后出现ValidationError:ProgressPluginInvalidOptions两种问......
  • 解决:Failed to start bean 'documentationPluginsBootstrapper'
    原因:在springboot2.6.0以后将SpringMVC默认路径匹配策略从AntPathMatcher更改为PathPatternParser,导致出错,解决办法是切换会原先的AntPathMatcher。解决:配置文件中加上spring:mvc:pathmatch:matching-strategy:ant_path_matcher ......
  • 5.clone plugin(克隆插件)的限制
    1.在使用ClonePlugin时,注意以下限制:克隆期间,会阻塞DDL。同样,DDL也会阻塞克隆命令的执行。不过从 MySQL8.0.27开始,克隆命令不会阻塞Donor上的DDL。ClonePlugin不会拷贝Donor的配置参数。ClonePlugin不会拷贝Donor的Binlog。ClonePlugin只会拷贝Inno......
  • 报错 qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even t
    参考:https://blog.csdn.net/qq_39938666/article/details/120452028  ==========================================  使用ubuntu系统下python的seaborn模块画图,报错:qt.qpa.plugin:CouldnotloadtheQtplatformplugin“xcb“in““eventhoughitwasfound......