MYSQL8.0使用客户端偶遇 caching_sha2_password cannot be loaded 问题

问题:
当使用类似HidiSQL邓客户端连接MySQL的时候出现"Authentication plugin 'caching_sha2_password' cannot be loaded:找不到指定的模块"错误。


解决办法:
        执行如下语句:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'abc@123' PASSWORD EXPIRE NEVER;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'abc@123';
FLUSH PRIVILEGES;

ALTER USER 'root'@'localhost' IDENTIFIED BY 'abc@123';
FLUSH PRIVILEGES;

你可能感兴趣的:(数据库专栏)