使用Navicat连接mysql报错:Client does not support authentication protocol requested by server

您所在的位置:网站首页 navicat连接不上数据库怎么办 使用Navicat连接mysql报错:Client does not support authentication protocol requested by server

使用Navicat连接mysql报错:Client does not support authentication protocol requested by server

2024-07-16 04:12| 来源: 网络整理| 查看: 265

Client does not support authentication protocol requested by server的意思是:客户端不支持服务器请求的身份验证协议

出现的错误:

出现错误的原因:当MySQL数据库由低版本升级到高版本8.0以上时,访问数据库服务时会报:Client does not support authentication protocol requested by server; consider upgrading MySQL client错误提示。

解决办法:

第一步:进入MySQL命令提示符窗口,输入密码进入数据库

第二步:输入ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123';然后按Enter键,其中root是用户名,localhost特指本地主机,mysql_native_password是旧的密码校验机制,123是密码

第三步:输入FLUSH PRIVILEGES;然后按Enter键

mysql> alter user 'root'@'localhost' identified with mysql_native_password by '123'; mysql>flush privileges;

重新使用Navicat连接Mysql,问题解决!

即使再累也要提醒自己不断学习,日日精进,必有所成。共勉!



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3