authentication plugin 'caching_sha2_password' -navicat连接异常问题解决

使用navicat 连接 mysql 8.0.11 报  "2059 - authentication plugin 'caching_sha2_password' ..."

解决办法:
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root1';

数据库查询user表,发现新版使用的,caching_sha2_password ,可能我自己的navicat版本不支持这种格式的密码。

| plugin                             | authentication_string                                                                                                 |
| caching_sha2_password | $A$005$piM&Krp\j/35!8<;HxBixcPjO34yvUXvNgQIPbdNu.E9xREeQDU9UZ1tAN/ |  
 

猜你喜欢

转载自blog.csdn.net/educast/article/details/89209649