navicat for mysql 连接报错1251详细解决步骤

解决方法:

1 use mysql;
2 ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY 你的密码;
3 FLUSH PRIVILEGES;