mysql报错系列一(1251)

1.报错问题

请添加图片描述

2.原因

因为MYSQL8.0之后更换了加密规则用8.0之前的语句**alter user ‘root’@‘localhost’ identified by ‘xxxxx’;**来修改密码会使用8.0默认的规则来加密,而SQLyog中找不到新的身份验证插件,加载身0份验证插件错误,因此产生以上报错。

3.解决办法

use mysql;

#更改密码
alter user 'root'@'localhost' identified with mysql_native_password by 'xxxxx';

#刷新权限
flush privileges;

猜你喜欢

转载自blog.csdn.net/qq_63119830/article/details/129637880