解决Navicat打开mysql:Client does not support authentication protocol requested by server
本地安装了mysql,很久没启动了,今天启动以后,报错:Client does not support authentication protocol requestedby server。
·
背景
本地安装了mysql,很久没启动了,今天启动以后,报错:Client does not support authentication protocol requested by server。
解决方案:
在在开始程序里,搜索mysql,找到如下程序,启动。输入密码。初始密码一般为root。再使用如下命令:
mysql> use mysql;
mysql> alter user 'root'@'localhost' identified with mysql_native_password by 'root';
Query OK, 0 rows affected (0.14 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.03 sec)
完美解决,收工。

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐
所有评论(0)