Mysql 连接错误之-caching_sha2_password
个人记录解决方案以便下次遇到同样问题解决,在 Workbench 中连接mysql 、
1、Query
2、依次输入
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用户的密码