用Navicat Premium连接数据库的时候苦逼的发现又又又又连不上了

果断去改加密
see一下
select user,plugin from user where user =‘root‘;

果然。。。
熟练的
ALTER USER‘root‘@‘localhost‘ IDENTIFIED BY ‘password‘ PASSWORD EXPIRE NEVER;

????????
几经周折,终于发现

原来以前改过host
之后就是改密3连
更改加密方式:ALTER USER‘root‘@‘%‘ IDENTIFIED BY ‘password‘ PASSWORD EXPIRE NEVER;
更新用户密码:ALTER USER‘root‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘root‘;
刷新权限:FLUSH PRIVILEGES;
泪目
原文:https://www.cnblogs.com/awsltt/p/13938648.html