客户端连接mysql8.0报plugin caching_sha2_password could not be loaded错误解决办法

客户端连接mysql8.0报plugin caching_sha2_password could not be loaded错误解决办法:

客户端连接mysql8.0报plugin caching_sha2_password could not be loaded错误解决办法_第1张图片

解决办法:

window cmd命令窗口输入:mysql -u root -p 

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改密码失效规则

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #修改密码加密规则

FLUSH PRIVILEGES; #刷新一下权限

alter user 'root'@'localhost' identified by 'yourpassword';#重置密码,yourpassword就是你需要重新设置的密码
 

你可能感兴趣的:(mysql,mysql)