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.正常链接数据库 |

相关推荐
爬山算法1 小时前
MongoDB(113)如何使用第三方工具进行MongoDB监控?
数据库·mongodb
早日退休!!!2 小时前
大模型推理瓶颈七层分析模型
java·服务器·数据库
大山同学2 小时前
claudecode精炼版-CoreCoder
数据库·人工智能·claude code·corecoder
of Watermelon League2 小时前
5、使用 pgAdmin4 图形化创建和管理 PostgreSQL 数据库
数据库·postgresql
Dontla3 小时前
Python asyncpg库介绍(基于Python asyncio的PostgreSQL数据库驱动)连接池、SQLAlchemy
数据库·python·postgresql
俺不要写代码3 小时前
数据库:DQL
数据库·sql·mysql
zh1570233 小时前
如何编写动态SQL存储过程_使用sp_executesql执行灵活查询
jvm·数据库·python
2401_824222693 小时前
SQL报表统计数据量巨大_分批统计策略
jvm·数据库·python
俺不要写代码3 小时前
数据库:DCL
数据库
X56613 小时前
mysql如何处理连接数过多报错_调整max_connections参数
jvm·数据库·python