navicat连接本地MySQL8.0.19报1251错误的解决办法

备注:host为 % 表示不限制ip localhost表示本机使用;
plugin非mysql_native_password 则需要修改密码。
依次执行如下sql:

select host,user,plugin,authentication_string from mysql.user;
ALTER USER 'root'@'localhost' IDENTIFIED BY '旧密码' PASSWORD EXPIRE NEVER;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';
flush privileges;

你可能感兴趣的:(MySQL)