版本:MySQL 8.xxx
Navicat for MySQL 创建本地数据库连接报错
2059 - Authentication plugin 'caching_sha2_password' cannot be loaded:...
set global validate_password.policy=0;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'xxxxxyyyyy';
ALTER USER 'root'@'%' IDENTIFIED BY 'xxxxxyyyyy';
update mysql.user set host = '%' where user = 'root';
ALTER USER root@'%' IDENTIFIED WITH mysql_native_password BY 'xxxxyyyy';