mysql 8.0 错误The server requested authentication method unknown to the client解决方法
程序员文章站
2022-09-11 17:54:48
mysql 安装了最新版本8.0.11后创建用户并授权后,授权的用户连接数据库提示
the server requested authentication met...
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 '你的密码';
以上就是出现这个错误的解决方法,如果大家还有更好的解决方案可以给在微信公众号留言,感谢大家对的支持。
上一篇: SQLServer之修改存储过程
推荐阅读
-
PHP错误:SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
-
mysql 8.0 错误The server requested authentication method unknown to the client解决方法
-
MySQL8.0报错Client does not support authentication protocol requested by server; consider upgrading My
-
MySql8.0,使用Navicat连接时报错:Client does not support authentication protocol requested by server;consider
-
mysql 8.0 错误The server requested authentication method unknown to the client解决方法
-
PHP错误:SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client