版本: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’;
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/database/278758.html