mysql 8.0 错误The server requested authentication method unknown to the client解决方法
作者:caigan的技术博客 时间:2024-01-13 01:41:25
mysql 安装了最新版本8.0.11后创建用户并授权后,授权的用户连接数据库提示
The server requested authentication method unknown to the client
查阅一些相关的资料后发现是由于新版本的mysql账号密码解锁机制不一致导致的
解决办法:
删除创建的用户和授权,
找到mysql配置文件并加入
default_authentication_plugin=mysql_native_password
变为原来的验证方式,然后从新创建用户并授权即可
或
mysql -uroot -p
use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';
来源:https://www.cnblogs.com/caicaizi/p/9430173.html
标签:mysql,8.0,错误
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python遍历zip文件输出名称时出现乱码问题的解决方法
2022-04-04 15:40:20
vue-router命名路由和编程式路由传参讲解
2024-05-02 17:03:39
![](https://img.aspxhome.com/file/2023/2/130072_0s.png)
Golang使用Gin框架实现路由分类处理请求流程详解
2024-05-29 22:07:41
![](https://img.aspxhome.com/file/2023/8/123588_0s.png)
漂亮的Django Markdown富文本app插件的实现
2021-08-14 15:23:24
![](https://img.aspxhome.com/file/2023/3/80533_0s.jpg)
如何优化SQL语句(全)
2024-01-27 06:12:59
对python 数据处理中的LabelEncoder 和 OneHotEncoder详解
2022-08-05 06:00:23
注册表单的改进分解
2008-05-31 17:19:00
![](https://img.aspxhome.com/file/UploadPic/20085/31/2008531172251994s.gif)
python等间距取值方式
2022-03-15 23:19:26
基于golang的简单分布式延时队列服务的实现
2024-05-08 10:44:03
![](https://img.aspxhome.com/file/2023/3/127403_0s.jpg)
Vue.js原理分析之nextTick实现详解
2024-05-13 09:38:08
五个有趣的Python整蛊小程序合集
2022-10-27 12:34:10
![](https://img.aspxhome.com/file/2023/0/86150_0s.png)
如何用python开发Zeroc Ice应用
2022-06-23 01:17:50
![](https://img.aspxhome.com/file/2023/3/71303_0s.gif)
OpenCV形状检测的示例详解
2023-11-11 06:17:14
![](https://img.aspxhome.com/file/2023/9/97489_0s.png)
MySql之授权用户权限如何设置
2024-01-21 21:56:13
![](https://img.aspxhome.com/file/2023/4/67594_0s.png)
Mysql 服务 1067 错误 的解决方法:修改mysql可执行文件路径
2024-01-27 04:06:09
![](https://img.aspxhome.com/file/2023/0/128380_0s.jpg)
Python如何发送与接收大型数组
2022-07-26 06:54:54
JSONObject.toString
2008-03-09 19:12:00
jquery密码强度测试工具源码
2009-12-23 19:38:00
![](https://img.aspxhome.com/file/UploadPic/20101/11/2009106204119-12s.png)
Windows自动执行python脚本操作步骤
2023-04-22 15:32:42
![](https://img.aspxhome.com/file/2023/1/101731_0s.jpg)
使用Python matplotlib绘制简单的柱形图、折线图和直线图
2022-04-08 02:13:19
![](https://img.aspxhome.com/file/2023/3/97653_0s.png)