unable to load mysql_连接mysql出现“Unable to load authentication plugin 'caching_sha2_password”错误...
这是mysql 8.0版本才出现的问题,原因是mysql 8.0 默认使用 caching_sha2_password 身份验证机制 —— 从原来的 mysql_native_password 更改为 caching_sha2_password。
解决办法:
可以更换版本但是感觉治标不治本,建议修改身份验证机制
1、登陆mysql
在mysql的bin目录下打开cmd(默认是C:\Program Files\MySQL\MySQL Server 8.0\bin)
输入:mysql -uroot -p 接着输入密码
2、登陆mysql成功之后输入:
alter user 'root'@'localhost' identified by 'root' password expire never;
alter user 'root'@'localhost' identified with mysql_native_password by 'root'
flush privileges;
其中root为mysql密码
完美解决
unable to load mysql_连接mysql出现“Unable to load authentication plugin 'caching_sha2_password”错误...相关推荐
- Navicat 连接MySQL数据库 报错2059 - authentication plugin 'caching_sha2_password'的解决办法...
#在数据库的命令行中输入以下代码即可解决,密码必须要修改 可以再次执行将密码改回来. use mysql; ALTER USER 'root'@'localhost' IDENTIFIED WITH ...
- golang连接mysql报错:this authentication plugin is not supported 解决方案
MySQL升级8.0以上版本后,在用第三方库github.com/Go-SQL-Driver/MySQL打开数据库时会报错this authentication plugin is not suppo ...
- MySQL 8.0 error 2059: Authentication plugin 'caching_sha2_password' cannot be loaded
安装MYSQL8.0+版本之后,使用可视化管理工具Workbench或者Navicat都会产生一个类似的报错. 原因:MYSQL8.0之前的版本中加密规则为mysql_native_password. ...
- 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 ...
- java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘.
错误描述 java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.at com.mysq ...
- Unable to load authentication plugin ‘caching_sha2_password‘
Mybatis反向生成报错 一.报错内容如下 Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin: ...
- 【问题解决】连接mysql 8错误:authentication plugin 'caching_sha2_password
在刚安装好mysql8,使用native连接的时候报错 authentication plugin 'caching_sha2_password'... 首先确保服务已开启,然后通过cmd命令进入my ...
- Navicat连接MySQL,出现2059 - authentication plugin ‘caching_sha2_password‘的解决方案
Navicat连接MySQL,出现2059 - authentication plugin 'caching_sha2_password'的解决方案 参考文章: (1)Navicat连接MySQL,出 ...
- 【MySQL】MySQL 8 连接出现 2059 - Authentication plugin caching_sha2_password ca
1.背景 本地连接MySQL报错 2059 - Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(../Fr ...
最新文章
- python字符串基本形式_python字符串常用方式
- 记一次TIME_WAIT网络故障
- DSP/BIOS中的数据类型
- python 矩形补正方形
- Eclipse转Intellij IDEA
- C++ Primer 5th笔记(chap 19 特殊工具与技术)typeid运算符
- 消息发送 C语言版和 Visual Basic Script版
- 字符串反转python_Python 反转字符串(reverse)的方法小结
- Android STL PORT
- Linux Centos安装步骤
- Python机器学习:线型回归法01简单线型回归法
- Selenium +Java自动化环境安装
- iPhone 13 Pro Max Magsafe保护壳曝光:命名方式疑似确认
- GitLab5.3修改项目仓库名称后wiki不能访问
- windows版mysql5.7.18安装
- Windows10下python3.5的sklearn库安装
- 基本排序算法比较与选择
- SQLMAP注入拖库过程 1
- 人体的神经系统图 分布,人神经系统分布图高清
- 天荒地老修仙功-第七部:Dubbo基本使用与原理详解