Mysql8.0以上Navicat无法连接问题
warning:
这篇文章距离上次修改已过1066天,其中的内容可能已经有所变动。
mysql 8.0版本以后 默认使用 caching_sha2_password 身份验证机制 —— 从原来的 mysql_native_password 更改为 caching_sha2_password。客户端不支持新的加密方式。
修改用户的密码和加密方式
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
再刷新权限
flush privileges;