mysql-2059

mysql8新版本发布,安装后出现2059错误,原因为安装时选择了强加密规则caching_sha2_password,与之前的mysql5.7的mysql_native_password规则不同,navicate驱动目前不支持新加密规则

问题的解决:

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1.cmd输入命令:mysql -u root -p 2.分别执行命令:use mysql; select user,plugin from user where user='root'; 3.分别执行命令: alter user 'root'@'localhost' identified by 'root' password expire never; alter user 'root'@'localhost' identified with mysql_native_password by 'root'; flush privileges; 4.正常链接数据库 |

相关推荐
GreatSQL社区4 分钟前
用systemd管理GreatSQL服务详解
数据库·mysql·greatsql
掘根4 分钟前
【MySQL进阶】错误日志,二进制日志,mysql系统库
数据库·mysql
weixin_438335407 分钟前
基础知识:mysql-connector-j依赖
数据库·mysql
小明铭同学23 分钟前
MySQL 八股文【持续更新ing】
数据库·mysql
Mr_Xuhhh33 分钟前
信号与槽的总结
java·开发语言·数据库·c++·qt·系统架构
Fireworkitte36 分钟前
Redis 源码 tar 包安装 Redis 哨兵模式(Sentinel)
数据库·redis·sentinel
qq_339282231 小时前
postgressql 如何修改模式的所有表的所有者
数据库
西岭千秋雪_2 小时前
Redis性能优化
数据库·redis·笔记·学习·缓存·性能优化
极限实验室2 小时前
INFINI Labs 产品更新 | INFINI Console 1.29.6 发布 – 优化监控图表异常毛刺等
数据库·产品