欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Navicat连不上本地mysql8

程序员文章站 2022-06-01 16:31:35
...

Navicat连不上本地mysql8

报错:
client does not support authentication protocol requested by server consider

使用workbrench登录到数据库,然后执行

ALTER USER 'root'@'localhost' IDENTIFIED BY 'root' PASSWORD EXPIRE NEVER;

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';

FLUSH PRIVILEGES;

‘root’ 是数据库密码 改成自己的密码即可

相关标签: navicat