SQLyog连接数据库 提示错误plugin caching_sha2_password could not be loaded

1.打开mysql cmd

2.执行语句

ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘password‘ PASSWORD EXPIRE NEVER; #修改加密规则

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

FLUSH PRIVILEGES; #刷新权限

alter user ‘root‘@‘localhost‘ identified by ‘123fzw‘; #重置密码

原文地址:https://www.cnblogs.com/Zev_Fung/p/9994376.html

时间: 2024-08-01 02:49:34

SQLyog连接数据库 提示错误plugin caching_sha2_password could not be loaded的相关文章

连接MySQL错误“plugin caching_sha2_password could not be loaded”的解决办法

MySQL新版默认使用caching_sha2_password作为身份验证插件,而旧版是使用mysql_native_password.当连接MySQL时报错“plugin caching_sha2_password could not be loaded”时,可换回旧版插件. mysql -hlocalhost -uroot -p123456 //进入数据库use mysql;ALTER USER [email protected] IDENTIFIED WITH mysql_native_

mysql 无法连接提示 Authentication plugin 'caching_sha2_password' cannot be loaded

mysql 无法连接提示 Authentication plugin 'caching_sha2_password' cannot be loaded 可能是密码没有设置或者,密码设置类型不符,可参考如下步骤解决 1 查看当前账户,和密码 select user,host,password from user; 或者是否设置了authentication_string select user,host,authentication_string,plugin from mysql.user; 2

在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”的解决方案

eclipse在其POM文件的一处提示出错如下: Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, phase: compile) 这表示m2e在其执行maven的生命周期管理时没有定义该插件,所以提示出错,其实m2e对此是提供了扩展机制的,我们可以通过如下操

远程连接mysql8.0,Error No.2058 Plugin caching_sha2_password could not be loaded

通过本地去连接远程的mysql时报错,原因时mysql8.0的加密方法变了. mysql8.0默认采用caching_sha2_password的加密方式 第三方客户端基本都不支持这种加密方式,只有自带的命令行支持 所以需要修改加密方式. 首先进入mysql命令行 [[email protected] ~]# mysql -u root -p Enter password: 第一步:修改加密方式 ALTER USER'root'@'localhost' IDENTIFIED BY '[email

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

在刚安装好mysql8,使用native连接的时候报错 authentication plugin 'caching_sha2_password'... 首先确保服务已开启,然后通过cmd命令进入mysql的localhost数据库 mysql -hlocalhost -uroot -p123456 然后进入mysql数据库 use mysql; 修改密码 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY

【问题记录】Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’....错误

问题描述: Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’ cannot be loaded:......错误 问题分析: mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password. 解决办法: 1.登陆数据库:mysql - u root -p; 2.切换数据库:use mys

Authentication plugin 'caching_sha2_password' cannot be loaded错误处理

使用Navicat建立新连接时,遇到Authentication plugin 'caching_sha2_password' cannot be loaded错误: 解决方法如下: 打开mysql: 输入命令: ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;   #修改加密规则 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_nat

authentication plugin caching_sha2_password cannot be loaded

最近下载新的MySQL8.0 来使用的时候, 通过sqlyog.或者程序中连接数据库时,提示:Authentication plugin 'caching_sha2_password' cannot be loaded 的错误,经查看发现,8.0改变了 身份验证插件 , 打开 my.ini (或者my.cofg) 可以看到变更了 5.7及其以前的方式: mysql_native_password 解决 Authentication plugin 'caching_sha2_password' c

Navicate连接MySQL出现2059-Authentication plugin 'caching_sha2_password' cannot be loaded:的解决方案

使用Navicate Premium12.0 连接MySql8.0出现2059-Authentication plugin 'caching_sha2_password' cannot be loaded:的错误,解决方法如下  1.打开MySQL 8.0 Command Line Client工具登陆到MySQL 2. 修改账户密码加密规则并更新用户密码 ALTER USER '登录名''@'localhost' IDENTIFIED BY '密码' PASSWORD EXPIRE NEVER