navicat连接mysql报错1251解决方案
更改加密方式
1.先通过命令行进入mysql的root账户:
mysql -uroot -p
2.更改加密方式
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
3.更改密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123';
4.刷新
FLUSH PRIVILEGES;